Formatter
Format .mmd and .mermaid files and Mermaid code blocks in Markdown with prettier-plugin-mmd. Without Prettier on your Markdown, mmdfmt formats only the diagrams.
Format diagrams, find mistakes, and build tools on a lossless syntax tree.
Format .mmd and .mermaid files and Mermaid code blocks in Markdown with prettier-plugin-mmd. Without Prettier on your Markdown, mmdfmt formats only the diagrams.
Find mistakes that Mermaid accepts silently, using @mmd-toolkit/eslint-plugin as an ESLint language plugin.
Read Mermaid text as an AST with tokens, comments, and source positions using @mmd-toolkit/parser.
Find supported diagram types and compatibility guarantees for the parser, formatter, and linter.
mmd-toolkit is a third-party project for Mermaid diagram text, not affiliated with mermaid-js. Here, mmd refers to that text and its .mmd file extension.
Try the parser and formatter in your browser, with no installation required. Edit Mermaid text, inspect its AST and tokens, preview Prettier formatting, and share your input by URL.
Try lint diagnostics, automatic fixes, and editor suggestions in ESLint Online Playground.