A JavaScript library for rendering math on the web using Typst syntax.
How it renders
Why Typst
Typst math syntax is simply delightful, and I wanted that experience on the web.
And I just like Typst 🥰
Why not Typst
Usage
View on GitHubnpm install mmtypstimport { renderMathML } from "mmtypst";
document.querySelector(".equation").innerHTML =
renderMathML("x^2 + y^2 = z^2");Notes
- The official typst.app uses WASM on the client side, and community libraries like Myriad-Dreamin/typst.ts are also available.
- HTML export is currently an experimental feature.