v0.3.2 ELK & tidy-tree layouts · Download · Release notes

The Mermaid diagram viewer

Dickory Docs was created because good Mermaid viewers are rare. This is the core product: open Markdown from disk and see every diagram as graphics — not fences you have to mentally parse.

What was missing elsewhere

Typical Markdown previewers ignore Mermaid, render it inconsistently, or push you to paste code into a separate website. Architecture docs, RFCs, and READMEs increasingly embed ```mermaid blocks — you deserve a desktop app that treats them as first-class output.

How Dickory Docs renders diagrams

When you open a .md file, the app:

  1. Parses Markdown with marked and splits out fenced mermaid segments.
  2. Renders each block to SVG via Mermaid 11 in the preview pane.
  3. Lets you click to expand any diagram into a modal when inline size is too cramped.
  4. Shows a clear error + retry if syntax is invalid — no silent blank boxes.

Surrounding prose still renders as HTML (sanitised with DOMPurify) so sequence charts stay next to the paragraphs that describe them.

Diagram types you can view

Anything Mermaid supports in your version — commonly flowcharts, sequence diagrams, class/ER diagrams, state machines, Gantt charts, and more. If it renders in Mermaid, Dickory Docs will attempt it from your fenced block.

Layout engines (dagre, ELK, tidy-tree)

Flowcharts use dagre by default (Mermaid’s built-in dagre-wrapper). Dickory Docs also bundles the official Mermaid 11 layout packages so opt-in layouts work from your Markdown — no paste into the live editor required.

Examples inside a fenced block:

%%{init: {"flowchart": {"defaultRenderer": "elk"}} }%%
flowchart TD
  A --> B
---
config:
  layout: elk.stress
---
flowchart TD
  A --> B

Try the sample file samples/mermaid-layouts.md in the repo for all layout variants.

Markdown preview (the wrapper)

Mermaid lives inside real documents. The preview pane also extracts a document title for the window chrome ({title} · Dickory Docs) and tracks a content hash to skip redundant re-renders when the file has not changed.

TOC anchor links

Internal links like [Why](#why) in an Index section scroll to the matching heading. Headings get GitHub-style id attributes so RFCs and long READMEs navigate like they do on GitHub.

Find in document

Click Find in the preview toolbar or press ⌘F / Ctrl+F. Matches are highlighted in the rendered preview (and in plain-text files); Enter and Shift+Enter step through results.

Diagram gallery

Browse every ```mermaid block in the active workspace or the current file. Pan and zoom in the gallery; open the source Markdown from a thumbnail. Smoother zoom on macOS in v0.2.0 (no compositor smear when scaling diagrams).

Dickory Docs diagram gallery with a system architecture Mermaid diagram expanded full screen
Gallery view — workspace-wide or per-file, with zoom and “Open file”.

Open from Finder (macOS)

Right-click a .md file → Open With → Dickory Docs. Fixed in v0.3.1 — see the macOS Open With guide for DMG selection and Gatekeeper tips.

Preview deep links

Jump straight to a diagram-bearing file with query parameters: