A mind map from a Markdown outline
Checked November 2026 against Mermaid's mindmap docs and markmap's site. I make Coffee, so weigh what I say about it. Coffee isn't affiliated with either.
A mind map is a tree drawn outwards from the middle: a topic, its branches, their twigs. A Markdown outline is the same tree written downwards. # is the topic, ## the branches, list items under them the twigs. So you rarely need to draw a mind map from scratch. You need a tool that draws the one you've already written.
The outline you start from
# Trip
## Lisbon
- Alfama
- Belém
## Porto
- Ribeira
Every method below turns that into Trip in the middle, Lisbon and Porto as branches, and each place under its city. The difference is where the drawing lives: in the note, in a separate file, or only on screen.
1. Mermaid's mindmap block
Mermaid draws a mind map from a code block that starts with mindmap. Each line indented further than the one above is its child:
mindmap
Trip
Lisbon
Alfama
Belém
Porto
Ribeira
Nodes can take shapes with brackets, as in flowcharts: id[square], id(rounded), id((circle)) and a few more. Mermaid's docs mark mind maps as experimental, since the syntax for icons may still change.
The upside is that the map is text in the note, so it travels to any app or site that draws Mermaid. The downside is that it's a second copy of your outline: change a heading and you change the block too. Mermaid diagrams in Markdown covers the other diagram kinds and where they render.
Coffee draws Mermaid mind maps natively under their block, on the Mac.
2. markmap
markmap reads an ordinary Markdown outline and draws it as an interactive mind map you can fold and zoom. There's nothing to rewrite: the headings and lists are the map. Its site lists an online editor, a VS Code extension, and a command line tool, where markmap notes.md writes an HTML file that works offline, and --svg or --png saves an image.
It's a good fit when the outline is the thing you maintain and the map is a way to look at it, or to hand someone a picture.
3. Coffee's Mind Map
On the Mac, Coffee draws any note's headings and list items as a tree of branches, with nothing added to the file:
- Open a note with headings or lists.
- Choose Note › Mind Map….
- Click a branch to go to that line in the note.
The map is drawn from the note as it is, so changing a heading changes the map. It's in Coffee's help on mind maps.
This is the "only on screen" kind: a way to see a long note's shape, find the branch that's grown too big, and jump to it. If you need the map in the file for others to see, use a Mermaid block.
Which to choose
| You want | Use |
|---|---|
| A map others see in the file | Mermaid mindmap block |
| An image or HTML page made from your outline | markmap |
| To see and move around a long note | Your editor's mind map, such as Coffee's |
When a mind map isn't the shape
A mind map is a tree. If your ideas link sideways, with one idea feeding three others, a tree hides that. A canvas of cards and arrows suits it better; canvas for Markdown notes shows how that works with the open JSON Canvas format. And if the outline is a talk, presenting it as slides may be what you're after.
For finding your way around a long note without a picture at all, a table of contents is the plainer tool.
Questions
Can Markdown make a mind map?
Not by itself, but its headings and lists are already a tree. Mermaid's mindmap block, markmap, and editors such as Coffee draw that tree as a mind map.
Does Mermaid support mind maps?
Yes. A code block starting with mindmap draws one, with indentation for the branches. Mermaid's docs call mind maps experimental.
Does Coffee's Mind Map change my note?
No. It's drawn from the note's headings and list items as they are, and clicking a branch goes to that line.
What's the difference between markmap and Mermaid's mindmap?
markmap reads an ordinary Markdown outline. Mermaid needs its own mindmap block, indented, which is a second copy of the outline in the note.
Mind Map and Mermaid diagrams are in Coffee on the Mac, on macOS 15 or later. It's free for 14 days without a card, then €3 a month, €29 a year, or €79 once with two years of updates.