pub fn mermaid<D>(doc: &D) -> Stringwhere
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.