Fix code block syntax highlighting might not process properly because the HTML is escaped

This commit is contained in:
Wu Cheng-Han 2016-10-23 16:30:09 +08:00
parent 27bc94744d
commit 67786a8aab
1 changed files with 2 additions and 2 deletions

View File

@ -476,10 +476,10 @@ function finishView(view) {
var code = "";
if (codeDiv.length > 0) code = codeDiv.html();
else code = langDiv.html();
code = md.utils.unescapeAll(code);
code = S(code).unescapeHTML().s;
if (!reallang) {
var result = {
value: md.utils.escapeHtml(code)
value: S(code).escapeHTML().s
};
} else if (reallang == "tiddlywiki" || reallang == "mediawiki") {
var result = {