Skip to Content
Md2Docx logo Md2Docx

defaultMermaidFixer()

Updated 22 Oct 2026

defaultMermaidFixer(value, _error?): string

Defined in: index.ts:97

Best-effort auto-fixer for Mermaid diagrams.

Quotes unquoted flowchart node labels and connection texts containing special characters.

Parameters

value

string

Original Mermaid diagram source code.

_error?

Error

Optional parse error from Mermaid.

Returns

string

Repaired Mermaid source code.

On this page