Fix cheatsheet rendering

do not process help-modal markdown-body
This commit is contained in:
Yukai Huang 2016-10-13 15:54:17 +08:00
parent bcb12b9ae7
commit f678d9b814
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ var postProcess = extra.postProcess;
var updateLastChange = extra.updateLastChange; var updateLastChange = extra.updateLastChange;
var preventXSS = require('./render').preventXSS; var preventXSS = require('./render').preventXSS;
var markdown = $(".markdown-body"); var markdown = $("#doc.markdown-body");
var text = $('<textarea/>').html(markdown.html()).text(); var text = $('<textarea/>').html(markdown.html()).text();
var lastMeta = md.meta; var lastMeta = md.meta;
md.meta = {}; md.meta = {};