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

View file

@ -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 = {};