Demo: repair a broken Mermaid flowchart
AI-generated Mermaid often fails because labels contain reserved punctuation, arrows are mixed, or subgraph syntax is incomplete. A fixer should return valid code and keep the original intent.
- Preserve node meaning while simplifying labels.
- Quote labels that include slashes, colons, or parentheses.
- Render the fixed diagram immediately to confirm the repair.
flowchart LR
A[User submits /checkout] --> B{Payment OK?}
B -- yes --> C[Create order]
B -- no --> D[Show retry]