migrated katex css

This commit is contained in:
Aaron Qian 2022-11-14 15:51:24 -08:00 committed by Aaron Qian
parent 1f614c2c24
commit af6bada025
No known key found for this signature in database
GPG key ID: BF1A987C395B5B0E
64 changed files with 13 additions and 4 deletions

View file

@ -1,4 +1,12 @@
import hljs from 'highlight.js'
import * as params from '@params'
hljs.highlightAll(params.syntaxhighlight?.hljs)
const defaultOptions = {
ignoreUnescapedHTML: true
}
hljs.configure({
...defaultOptions,
...(params.syntaxhighlight?.hljs || {}),
});
hljs.highlightAll();