mermaid-text 0.1.0

Render Mermaid diagrams as Unicode box-drawing text — no browser, no image protocols, pure Rust
Documentation

mermaid-text

Render Mermaid flowchart diagrams as Unicode box-drawing text — no browser, no image protocol, pure Rust.

Quick start

let output = mermaid_text::render("graph LR; A[Start] --> B[End]").unwrap();
assert!(output.contains("Start"));
assert!(output.contains("End"));

Supported syntax (Phase 1)

  • graph LR/TD/RL/BT and flowchart LR/TD/RL/BT headers
  • Node shapes: A[rect], A{diamond}, A((circle)), A(rounded), A
  • Edge types: -->, ---, -.->, ==> (all rendered as solid arrows)
  • Edge labels: -->|label| and -- label -->
  • Semicolons and newlines as statement separators