Quote mindmap node-label payloads when they contain characters the Mermaid 11 mindmap parser treats as control tokens โ specifically (, ), :, and #. The : is the icon-syntax delimiter (::icon(fa fa-โฆ)); a bare colon in human text (e.g. HD11726: constitutional knowledge question) crashes the parser with Expecting 'NL', got ':' even though no icon was intended.
The fix wraps the affected line content in the bracketed-shape form ["โฆ"], which the mindmap grammar accepts as an opaque label. Indentation (which carries the mindmap tree depth) is preserved verbatim.
Skips:
the mindmap keyword line,
the root((โฆ)) line (intentional double parens),
comments (%%โฆ),
blank lines,
lines already wrapped in [โฆ], (โฆ), ((โฆ)), [(โฆ)], or {โฆ} โ these were authored explicitly and need no quoting.
Quote mindmap node-label payloads when they contain characters the Mermaid 11 mindmap parser treats as control tokens โ specifically
(,),:, and#. The:is the icon-syntax delimiter (::icon(fa fa-โฆ)); a bare colon in human text (e.g.HD11726: constitutional knowledge question) crashes the parser withExpecting 'NL', got ':'even though no icon was intended.The fix wraps the affected line content in the bracketed-shape form
["โฆ"], which the mindmap grammar accepts as an opaque label. Indentation (which carries the mindmap tree depth) is preserved verbatim.Skips:
mindmapkeyword line,root((โฆ))line (intentional double parens),%%โฆ),[โฆ],(โฆ),((โฆ)),[(โฆ)], or{โฆ}โ these were authored explicitly and need no quoting.Applies only to
mindmap.