Auto-fix common Mermaid mistakes in a document, returning the corrected text.
Applies safe rewrites inside Mermaid blocks only โ normalizing flowchart
arrows (-> to -->), inserting missing sequence-message colons, and closing
unclosed fences โ re-running until the output stabilizes (max 10 passes).
Auto-fix common Mermaid mistakes in a document, returning the corrected text. Applies safe rewrites inside Mermaid blocks only โ normalizing flowchart arrows (
->to-->), inserting missing sequence-message colons, and closing unclosed fences โ re-running until the output stabilizes (max 10 passes).