fixed coding style

This commit is contained in:
VJHack 2024-12-12 15:31:13 -06:00
parent 8f8f3fc61c
commit 661302278e

View File

@ -83,7 +83,7 @@ const THEMES = ['light', 'dark', 'cupcake', 'bumblebee', 'emerald', 'corporate',
const VueMarkdown = defineComponent( const VueMarkdown = defineComponent(
(props) => { (props) => {
const md = shallowRef(new MarkdownIt({ breaks: true })); const md = shallowRef(new MarkdownIt({ breaks: true }));
md.value.use(HighlightJS,{hljs}) md.value.use(HighlightJS, { hljs });
md.value.use(markdownItKatexGpt) md.value.use(markdownItKatexGpt)
const origFenchRenderer = md.value.renderer.rules.fence; const origFenchRenderer = md.value.renderer.rules.fence;
md.value.renderer.rules.fence = (tokens, idx, ...args) => { md.value.renderer.rules.fence = (tokens, idx, ...args) => {