Demo of HTML features

In the process of rewriting my entire website in Typst’s experimental html compilation target, I didn’t find many resources:

  • the docs are… minimalist;
  • there’s like… one good example to get started
  • … and that’s it ?

So decided to create my own repository of implementable features.

Here is the demo:

I’ve included nontrivial features such as

  • embedded source code
  • syntax highlighting
  • partial replications of Typst’s text, box, table, align functions
  • helper functions to generate CSS on the fly
  • support for Typst’s builtin colors and lengths

I’ll be happy if this encourages more people to try out --format html, and I look forward to future developments of the feature :)

10 Likes