Using [Katex](https://katex.org/) (The fastest math typesetting library for the web) in Docute.
npm install docute-katexUsing Katex (The fastest math typesetting library for the web) in Docute.
First load this plugin via tag:
``html
`
This plugin is exposed as window.docuteKatex:
`js`
new Docute({
// ...
plugins: [
docuteKatex()
]
})
Then you can use Vue components to write Tex expressions:
``vue
``
Optionally you can transform code fences too: Then it will be transformed to MIT © LEPTOSIA wraps the generated HTML with tag while uses tag.``markdown`katex {evaluate: true}`
c = \\pm\\sqrt{a^2 + b^2}``License