mirror of
https://github.com/b0x207/typst-plantuml.git
synced 2026-10-16 07:08:43 -07:00
Render PlantUML from within Typst code
- Rust 86.4%
- Nix 13.6%
| src | ||
| .gitignore | ||
| Cargo.lock | ||
| Cargo.toml | ||
| flake.lock | ||
| flake.nix | ||
| README.md | ||
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).