mirror of
https://github.com/danbulant/Nertivia-Client
synced 2026-06-13 19:42:01 +00:00
fixed a small issue with double escaping
This commit is contained in:
parent
7fbadc711d
commit
3d4001a420
1 changed files with 1 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue