I produce a lot of html documents/books that benefit from html in a few ways such as having a floating table of contents, marginal notes, and interactive javascript-svg-based graphics. html has its own headaches surrounding hidden css and other things. Do the Typst developers think that these types of html features will be implemented for Typst documents processed with the cli?
#Does Typst ultimately plan to provide advanced support for producing html documents?
7 messages · Page 1 of 1 (latest)
It's in the roadmap: https://github.com/typst/typst/issues/712
Nice to see - thanks. I didn't see embedded javascript mentioned explicitly but I hope that will be included.
I think the road map just mentions outputting as HTML, but the source code is still Typst. I don't think JS will be embedded.. (I worked on Chromium and know embedding JS would be a huge hassle)
The ability to have interactive graphics and tooltips would be a major plus. I used to do this with LaTeX with javascript embedded in PDF but only Adobe Acrobat supported it and it broke on Macs, so I learned not to go that route.
If one day Typst supports outputting HTML from Typst source, I think one can easily manipulate the HTML output using JS, right? I'm not totally sure of the value of embedding a JS interpreter into the Typst binary.. 🤔
i mean, i guess there could be some introspection available to be able to conditionally insert JS into HTML exports