Mermaid & Math Markdown Editor

The ultimate Markdown editing experience for technical writing. Natively render complex Mermaid diagrams, flowcharts, and KaTeX LaTeX math equations instantly in your browser.

Open Markdown Studio →

How to create a diagram

  1. Open the Markdown Studio.
  2. Type ```mermaid to start a Mermaid code block.
  3. Write your diagram syntax, like graph TD; A-->B;.
  4. Watch the diagram generate instantly in the live preview panel on the right.

Mermaid Native

No plugins required. Flowcharts, sequence diagrams, gantt charts, and mindmaps work out-of-the-box.

KaTeX Math

Write standard LaTeX syntax in $...$ for beautiful mathematical expressions.

Theme Aware

Diagrams automatically adapt their colors depending on whether you are using light or dark mode.

Download & Share

Export your full document, including rendered diagrams and math, to a standalone HTML file.

Frequently Asked Questions

How do I create a Mermaid diagram?

Open a fenced code block with the language identifier ```mermaid and write Mermaid syntax inside. The preview will automatically render it as an SVG.

Which Mermaid diagrams are supported?

We support flowchart, sequence, gantt, class, ER, state, mindmap, journey, and more. The diagrams adapt to your active light or dark theme.

How do I write mathematical equations?

Wrap inline math in $...$ and block math equations in $$...$$. We use KaTeX to render LaTeX expressions beautifully and instantly.