fix(renderer): upgrade styles and API of highlight.js
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
This commit is contained in:
committed by
Philip Molares
parent
95ba7f6fb5
commit
dddd3a7ed5
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user