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();

View file

@ -17,4 +17,6 @@ module:
- source: ../../node_modules/flag-icon-css/flags
target: static/flags
- source: ../../node_modules/@fontsource/mulish/files
target: static/files
target: static/files
- source: ../../node_modules/katex/dist/fonts
target: static/fonts

View file

@ -28,4 +28,4 @@ math:
embedpdf:
styles:
- ./sections/pdf-viewer
- ./sections/pdf-viewer

File diff suppressed because one or more lines are too long