mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-12-25 18:00:51 +00:00
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 = "";
|
||||
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 = {
|
||||
|
|
Loading…
Reference in a new issue