Diagrams inside Markdown

Open a .md or .markdown document containing a fenced code block labelled mermaid. The surrounding document stays readable while the block becomes a diagram. Other code blocks remain code.

```mermaid
flowchart LR
  A[Open a file] --> B[Read the diagram]
  B --> C[Keep it private]
```

Paste a diagram without a Markdown document

  1. Choose Paste clipboard, or paste text into the viewer when you are not editing another field.
  2. QuickDataView recognizes common Mermaid starters, such as flowchart LR or sequenceDiagram.
  3. If the suggestion differs, choose Mermaid diagram from Content format.
  4. Open the pasted content. Edit the source to update the preview.

You can also open .mmd and .mermaid files directly. The original source remains available, and Download Mermaid saves a local copy. No account or diagram service is required.

Give a large diagram more space

Choose Expand diagram for a larger view, then use Zoom in, Zoom out or Fit diagram. Download SVG saves the rendered vector diagram locally. Inside a Markdown document, Diagram source lets you inspect the text behind each diagram.

What if a diagram does not render?

A syntax error leaves the source visible with an explanation. Check the diagram type, brackets and arrows, then edit the source. The viewer supports up to 12 diagrams per Markdown preview, 20,000 characters and 200 edges per diagram. Very large or complex layouts may still be slow on your device.

Diagram configuration directives, embedded images, custom icon resources and embedded HTML are unsupported here. Frontmatter is omitted before rendering. Diagram links are not interactive. These previews focus on text, shapes and connections; use your authoring tool when its extensions or custom configuration are essential.

Thanks to Mermaid

The Mermaid open-source community makes diagrams approachable by keeping their source readable as text. QuickDataView bundles its renderer so you can take a free, private look without a hosted diagram account. See Mermaid’s official project and syntax documentation.

See the Markdown viewer for the rest of the document preview, or clipboard format detection for other pasted content.

Credit to the format’s makers

John Gruber’s Markdown made writing for the web feel more like writing ordinary text. Its readable source is an enduring strength: you can understand the document even before rendering it.

Format reference: John Gruber’s Markdown project. Reference checked 7 October 2026. These links acknowledge the format; they do not imply endorsement or a partnership.