ARTICLE DETAIL

建站实战干货

来自一线的建站与推广经验沉淀,每一条都经过真实交付验证。

在vue-markdown-render中解析LaTeX公式

2026/9/18 4:22:33 拓冰建站 浏览量
在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' }})
]