@lowmst/markdown-it-typst-math
v1.1.0
Published
Markdown It plugin that adds Typst math equation rendering
Readme
Markdown-It Typst Math
Markdown It plugin that adds Typst rendering for math equations.
It references some of the code from vscode-markdown-it-katex and @myriaddreamin/reyhpe-typst.
Adapted for VitePress dark mode.
Usage
Install markdown-it
npm install markdown-itInstall the plugin
npm install @lowmst/markdown-it-typst-mathUse it in your javascript
import markdownit from 'markdown-it';
import mt from '@lowmst/markdown-it-typst-math';
const md = markdownit();
md.use(mt);Import CSS '@lowmst/markdown-it-typst-math/dist/index.css'
Example
# Typst Test
- Inline $integral_a^b f(x)upright(d)x=lim_(lambda->0)sum_(i=1)^n f(xi_i)Delta x_i$
- Block $$integral_a^b f(x)upright(d)x=lim_(lambda->0)sum_(i=1)^n f(xi_i)Delta x_i$$
