在vue-markdown-render中解析LaTeX公式
<VueMarkdown :options="{ html: true }" :plugins="markdownPlugins" class="markdown" :source="message.content" />
import texmath from 'markdown-it-texmath' import * as katex from 'katex' const markdownPlugins = [ (md: any) => md.use(texmath, { engine: katex, delimiters: 'brackets', katexOptions: { throwOnError: false, strict: 'ignore' } }) ]

浙公网安备 33010602011771号