Render PlantUML from within Typst code
  • Rust 86.4%
  • Nix 13.6%
Find a file
2026-02-13 10:59:41 -08:00
src fix: don't crash when a diagram doesn't render correctly 2026-02-13 10:15:23 -08:00
.gitignore feat: add a nix flake 2026-02-06 14:30:09 -08:00
Cargo.lock Initial Commit 2026-02-06 00:11:28 -08:00
Cargo.toml Initial Commit 2026-02-06 00:11:28 -08:00
flake.lock feat: add a nix flake 2026-02-06 14:30:09 -08:00
flake.nix feat: add a nix flake 2026-02-06 14:30:09 -08:00
README.md chore: remove warnings from README.md 2026-02-13 10:59:41 -08:00

Typst PlantUML

A simple tool that detects changes to Typst code and uses inline PlantUML to generate diagrams.

Usage

On most systems, you can simply install via cargo:

cargo install --path . --locked

Then just run with typst-plantuml <some directory>.

Nix support will come very soon.

Typst Code

Inside of a typst document, you can then do something like:

#if false [
```plantuml
' test.svg
@startuml
Hello -> World: Wow
@enduml
```
]
#image("test.svg")

Note that the conditional is used to hide the code block without removing it fromt the AST (like a comment would).