fix(renderer): upgrade styles and API of highlight.js

Signed-off-by: Erik Michelson <github@erik.michelson.eu>
This commit is contained in:
Erik Michelson
2026-08-21 22:04:40 +02:00
committed by Philip Molares
parent 95ba7f6fb5
commit dddd3a7ed5
5 changed files with 12 additions and 4 deletions

View File

@@ -525,7 +525,9 @@ export function finishView (view) {
if (!languages.includes(reallang)) {
result = hljs.highlightAuto(code)
} else {
result = hljs.highlight(reallang, code)
result = hljs.highlight(code, {
language: reallang
})
}
if (codeDiv.length > 0) codeDiv.html(result.value)
else langDiv.html(result.value)