We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9572484 commit a8e9a24Copy full SHA for a8e9a24
src/views/chat/components/Message/Text.vue
@@ -25,7 +25,7 @@ const mdi = new MarkdownIt({
25
const validLang = !!(language && hljs.getLanguage(language))
26
if (validLang) {
27
const lang = language ?? ''
28
- return highlightBlock(hljs.highlight(lang, code, true).value, lang)
+ return highlightBlock(hljs.highlight(code, { language: lang }).value, lang)
29
}
30
return highlightBlock(hljs.highlightAuto(code).value, '')
31
},
0 commit comments