mirror of
https://github.com/danbulant/Nertivia-Client
synced 2026-07-04 18:40:39 +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
|
let highlighted
|
||||||
if(formatted.lang.length === 0) {
|
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)) {
|
} else if(hljs.listLanguages().includes(formatted.lang)) {
|
||||||
highlighted = hljs.highlight(formatted.lang, formatted.code, true)
|
highlighted = hljs.highlight(formatted.lang, formatted.code, true)
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue