ARTICLE DETAIL

资讯详情

深耕网站建设、视觉设计与SEO优化的一线实战洞察。

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

在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' }})
]

 

返回列表