4 ms·
`typst` might meet your needs. No, really. It embeds almost anywhere, including via client-side WASM, and someone even made a nice TypeScript lib [0]. If you d
by so-rose 1y ago
`typst` might meet your needs. No, really.
It embeds almost anywhere, including via client-side WASM, and someone even made a nice TypeScript lib [0]. If you dislike `typst`, it even has a package that transpiles LaTeX strings into native typst, which somehow doesn't seem to make `typst` any less fast [1]. WASM plugin magic will do that!
The curious consequence is that the fastest and most portable way to render lightwight LaTeX code might actually be... To transpile LaTeX to embedded `typst`? Sure, sure, not all of LaTeX will map. But from an 80/20 mindset it might just be enough.
- [0] https://github.com/Myriad-Dreamin/typst.ts https://github.com/Myriad-Dreamin/typst.ts
- [1] https://typst.app/universe/package/mitex/ https://typst.app/universe/package/mitex/