summaryrefslogtreecommitdiff
path: root/public
diff options
context:
space:
mode:
authorYukai Huang2016-10-13 15:54:17 +0800
committerYukai Huang2016-10-13 15:54:17 +0800
commitf678d9b81451fba0b196332a2d2d97310f2133ab (patch)
tree2f370986a78c12529f7a01c22c27b760887c1934 /public
parentbcb12b9ae7d3562a05d007d6bab1042c1e6319fe (diff)
Fix cheatsheet rendering
do not process help-modal markdown-body
Diffstat (limited to 'public')
-rw-r--r--public/js/pretty.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/public/js/pretty.js b/public/js/pretty.js
index 1288225b..c1c2b4a4 100644
--- a/public/js/pretty.js
+++ b/public/js/pretty.js
@@ -10,7 +10,7 @@ var postProcess = extra.postProcess;
var updateLastChange = extra.updateLastChange;
var preventXSS = require('./render').preventXSS;
-var markdown = $(".markdown-body");
+var markdown = $("#doc.markdown-body");
var text = $('<textarea/>').html(markdown.html()).text();
var lastMeta = md.meta;
md.meta = {};