obsidian-typst
obsidian-typst copied to clipboard
Tracking HTML Output
The README mentions HTML output as planned, so I thought to collect some information on the state of Typst and HTML output here:
- Upstream Typst is planning and tracking HTML output at typst/typst#114, though without any timeline
- Pandoc has partial support for reading Typst (https://pandoc.org/MANUAL.html#general-options), but e.g. non-trivial math simply fails and renders as TeX
- A PR to Typst was opened for outputting to Pandoc at typst/typst#461, but the author decided that either implementing Typst reading on the Pandoc side or native HTML output for Typst were better ideas
- Progress for a Typst Pandoc reader is being tracked at jgm/pandoc#8740 and is in progress. It seems like any Pandoc-based route will incur lossy conversion, but existing work is enough to compile non-trivial Typst documents to HTML
https://github.com/Myriad-Dreamin/typst.ts
I think this could help
Recently SVG export has been merged into Typst's master branch, the next release will include SVG export. I know its not HTML but its better than using a canvas.
For completeness, the correct upstream issue is now https://github.com/typst/typst/issues/721.
And the upstream tracking issue for progress is typst/typst#5512.