Categorise a raw mermaid.parse() error message into one of MermaidParseCategory so reports + autofix dispatch can act on the structured cause rather than re-grepping the message at every call site.
Pure function โ safe to call without bootstrapping Mermaid.
Categorise a raw
mermaid.parse()error message into one of MermaidParseCategory so reports + autofix dispatch can act on the structured cause rather than re-grepping the message at every call site.Pure function โ safe to call without bootstrapping Mermaid.