Skip to main content

mermaid

Function mermaid 

Source
pub fn mermaid<D>(doc: &D) -> String
where D: ExportSource + ?Sized,
Expand description

Renders a validated machine-local topology as Mermaid flowchart text.

Output ordering is deterministic for one validated export surface. State labels and edge labels are escaped for Mermaid so the returned string is suitable for snapshot tests, generated docs, and CLI output.