No description
Find a file
2026-05-07 15:29:53 -04:00
.forgejo/workflows test: print nix path of gitea runner 2026-04-23 14:33:16 -04:00
prepends add: bibliography prepend 2026-05-07 15:29:53 -04:00
src fix: outlines without titles no longer include the first list level 2026-04-29 00:38:40 -04:00
.gitignore add: compile functionality to lib 2026-04-20 11:44:01 -04:00
build.rs add: figure plugin 2026-04-27 13:46:43 -04:00
Cargo.lock add: plugin system 2026-04-27 12:22:19 -04:00
Cargo.toml add: plugin system 2026-04-27 12:22:19 -04:00
default.nix add: forgejo release action 2026-04-23 14:23:10 -04:00
README.md Add: README.md 2025-07-13 22:52:11 -04:00
rust-toolchain.toml chore: cleanup nix dev stuff 2026-04-28 11:07:11 -04:00

Typssg

This project interfaces with the Typst Rust library to modify the HTML render to be better suited for static site generation. Namely:

  • Giving each header a proper slug id (header "Hello, world!" gets id="hello-world")
  • Generating an outline.html which includes the document's header hierarchy as a list
  • Removing the entire html header, leaving only the inside of the body without the <body> tag so that it can be better inserted into a webserver html template.
  • Prepending some Typst redefinitions for better rendering

This project is not too generalized, as I made it for another project I'm working on. I intend to flesh out the features of this project in the future.