* migrate bootstrap and flags to bundle * migrated main.css * migrate navbar.css and plyr * migrated mulish font and darkreader * migrated static/css/sections stylesheets * migrated list page and sidebar styles * migrated search.html ( nothing to add ) * migration single page styles * remove duplicated style tags * migrate notes. Deleted unused css in static * migrate 404 css to bundle * migrate katex styles * migrate embedpdf styles * migrated katex css --------- Co-authored-by: Aaron Qian <aaron@yeet.io>
12 lines
233 B
JavaScript
12 lines
233 B
JavaScript
import hljs from 'highlight.js'
|
|
import * as params from '@params'
|
|
|
|
const defaultOptions = {
|
|
ignoreUnescapedHTML: true
|
|
}
|
|
|
|
hljs.configure({
|
|
...defaultOptions,
|
|
...(params.syntaxhighlight?.hljs || {}),
|
|
});
|
|
hljs.highlightAll();
|