obsidian-typst icon indicating copy to clipboard operation
obsidian-typst copied to clipboard

Tracking HTML Output

Open Qyriad opened this issue 2 years ago • 4 comments

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

Qyriad avatar Jun 26 '23 20:06 Qyriad

https://github.com/Myriad-Dreamin/typst.ts

I think this could help

istudyatuni avatar Jul 02 '23 11:07 istudyatuni

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.

fenjalien avatar Aug 09 '23 13:08 fenjalien

For completeness, the correct upstream issue is now https://github.com/typst/typst/issues/721.

tobiasdiez avatar May 03 '24 01:05 tobiasdiez

And the upstream tracking issue for progress is typst/typst#5512.

ron-wolf avatar Dec 15 '24 21:12 ron-wolf