@mermaid-lint/core
    Preparing search index...

    Function fixText

    • 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).

      Parameters

      • src: string

        Original document contents.

      • Optionalopts: FixOptions

        Path and fence options (see FixOptions).

      Returns string

      The fixed text, unchanged if nothing matched.