English
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.
| Tool | Purpose |
|---|---|
| Parser | Parse diagram text and return an AST. |
| Formatter | Format indentation, whitespace, and line breaks with Prettier. |
| Linter | Report 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.
- Compatibility: tool guarantees and validation scope.
- Known divergences: differences in accepted syntax and interpretation.
- Formatter compatibility: guarantees and exceptions when formatting text.