Guide

How to view Mermaid diagrams offline

A Mermaid diagram is plain text in a Markdown code block that starts with ```mermaid. To see it as a drawing, you need a program that includes the Mermaid renderer. These are the common desktop options and how they differ.

Your options

Programs that draw Mermaid diagrams

Four of these are editors. LeanMark is the one that only reads.

As each program's own site describes it, checked on 14 November 2026.
Program What it is Price Draws Mermaid
LeanMark Read-only viewer Free, MIT licensed Yes, with the Mermaid library included in the app
VS Code Code editor with a Markdown preview Free Yes, in the built-in preview (docs)
Typora Markdown editor $14.99 per license, 15-day trial (site) Yes, once diagrams are turned on in its preferences (docs)
Obsidian Notes app and editor Free; a commercial license is optional (pricing) Yes (docs)
Notepad Text editor with a formatted Markdown view Included with Windows 11 Not listed (announcement)

Microsoft's Notepad announcement lists bold, italic, links, lists, and headings, and does not mention diagrams. This table does not test how the other programs behave without an internet connection.

In LeanMark

Open the file and read the diagram

LeanMark draws each mermaid code block as a diagram on your computer. The Mermaid library ships with the app and is loaded only when the document contains a Mermaid block.

  • No internet connection needed to draw a diagram
  • Mermaid runs in its strict security mode
  • The page reloads when the file changes on disk
plan.md local file
# Release plan

```mermaid
flowchart LR
  Draft --> Review --> Ship
```

Large diagrams

Make a diagram as large as it needs to be

Expand to the full window

A button in the corner of every Mermaid diagram opens it across the whole window, fitted to it. Escape returns to the same place in the document.

Zoom and pan

Zoom from 10% to 800% with + and -, or Ctrl+wheel at the pointer. 0 fits the window, 1 shows actual size, and arrow keys or dragging pan.

Install

Get LeanMark

On Windows, with winget winget install abooodbah.LeanMark
From the Microsoft Store, with winget winget install --id 9MSS4WKJ22ZV --source msstore
On macOS, with Homebrew brew install --cask abooodbah/tap/leanmark

LeanMark is free and MIT licensed. Builds for Windows, Linux, and macOS are on the releases page. For other ways to read Markdown on Windows, see how to open .md files on Windows.