mirror of
https://github.com/danbulant/Nertivia-Client
synced 2026-06-18 14:01:12 +00:00
fixed codeblock
This commit is contained in:
parent
8a37636ab8
commit
3f107b8a19
1 changed files with 1 additions and 1 deletions
|
|
@ -18,7 +18,7 @@ export default (order) => { return {
|
|||
const className = node.lang ? `language-${node.lang}` : undefined
|
||||
|
||||
let content = SimpleMarkdown.sanitizeText(node.content)
|
||||
if(node.lang) {
|
||||
if(node.lang && hljs.getLanguage(node.lang)) {
|
||||
content = hljs.highlight(node.lang, node.content, true).value
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue