|
|
|
|
|
by OlaProis
329 days ago
|
|
This is a perfect use case! The v0.3.0 crate will have:
- parse() → AST
- layout() → positioned elements
- render_svg() → SVG string
- render_png() → via resvg (no browser needed) CLI usage would be something like: mermaid-rs diagram.mmd -o diagram.png> # or pipe from stdin> cat diagram.mmd | mermaid-rs --format svg > output.svg> For your mark integration, you'd be able to call it as a subprocess or use it as a Rust library directly if you're building in Rust. If you want to follow progress or have input on the API, feel free to open an issue on the repo! |
|