mdast2docx logo Md2Docx
Version 1.3.0API DocsFunctions

defaultMermaidFixer()

Updated 5 min ago

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