Skip to content

Diagram support ​

mmd-toolkit supports every diagram type in Mermaid 12.3.0. The parser, formatter, and linter share the same syntax definition.

Using the tools ​

You can use the same tools for every diagram type.

ToolPurpose
ParserParse diagram text and return an AST.
FormatterFormat indentation, whitespace, and line breaks with Prettier.
LinterReport syntax errors and mistakes found by enabled ESLint rules.

Each lint rule checks a particular kind of mistake. Its applicability and examples are explained in the rule documentation.

Compatibility scope ​

The compatibility reference is mermaid.js 12.3.0. This scope covers the diagram text syntax of that version. Rendering and layout are handled by Mermaid.

Third-party tools for Mermaid diagram text.