How to remove html boilerplate from compiled html output?

Hi. Looking at typst/crates/typst-html/src/lib.rs at 494e6a64225261add59c3c9b1cd923bfdfa77961 · typst/typst · GitHub, the root element requires head, which adds the meta tags, and then the body is added. So no, you can’t remove them within Typst. This might become configurable at some point.

See My static-site blog based on astro and typst and One command to build blogs with Typst. Maybe you can get some help from @Myriad-Dreamin.

1 Like