fixed a small issue with double escaping

This commit is contained in:
brecert 2019-07-09 23:03:19 -04:00
parent 7fbadc711d
commit 3d4001a420

View file

@ -89,7 +89,7 @@ futoji.addTransformer({
let highlighted
if(formatted.lang.length === 0) {
return `<div class="codeblock"><code>${escapeHTML(formatted.code)}</code></div>`
return `<div class="codeblock"><code>${formatted.code}</code></div>`
} else if(hljs.listLanguages().includes(formatted.lang)) {
highlighted = hljs.highlight(formatted.lang, formatted.code, true)
} else {