Fix code block syntax highlighting might not process properly because the HTML is escaped
This commit is contained in:
parent
27bc94744d
commit
67786a8aab
1 changed files with 2 additions and 2 deletions
|
@ -476,10 +476,10 @@ function finishView(view) {
|
||||||
var code = "";
|
var code = "";
|
||||||
if (codeDiv.length > 0) code = codeDiv.html();
|
if (codeDiv.length > 0) code = codeDiv.html();
|
||||||
else code = langDiv.html();
|
else code = langDiv.html();
|
||||||
code = md.utils.unescapeAll(code);
|
code = S(code).unescapeHTML().s;
|
||||||
if (!reallang) {
|
if (!reallang) {
|
||||||
var result = {
|
var result = {
|
||||||
value: md.utils.escapeHtml(code)
|
value: S(code).escapeHTML().s
|
||||||
};
|
};
|
||||||
} else if (reallang == "tiddlywiki" || reallang == "mediawiki") {
|
} else if (reallang == "tiddlywiki" || reallang == "mediawiki") {
|
||||||
var result = {
|
var result = {
|
||||||
|
|
Loading…
Reference in a new issue