---
title: "A mind map from a Markdown outline"
author: Pedro Thomaz
source: https://coffeetext.app/blog/mind-map-from-markdown
---

# A mind map from a Markdown outline

> Checked November 2026 against [Mermaid's mindmap docs](https://mermaid.js.org/syntax/mindmap.html) and [markmap's site](https://markmap.js.org/). 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](https://mermaid.js.org/syntax/mindmap.html) draws a mind map from a code block that starts with `mindmap`. Each line indented further than the one above is its child:

```mermaid
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](https://coffeetext.app/blog/mermaid-diagrams-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](https://markmap.js.org/) 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:

1. Open a note with headings or lists.
2. Choose Note › Mind Map….
3. 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](https://coffeetext.app/help/mind-map).

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](https://coffeetext.app/blog/canvas-markdown-notes-mac) shows how that works with the open JSON Canvas format. And if the outline is a talk, [presenting it as slides](https://coffeetext.app/blog/present-markdown-as-slides-mac) may be what you're after.

For finding your way around a long note without a picture at all, a [table of contents](https://coffeetext.app/blog/markdown-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.

---

Written by Pedro Thomaz, who makes Coffee, a Markdown editor for the Mac on macOS 15 or later, and for iPhone and iPad. It's free for 14 days with no card or account, then €3 a month, €29 a year, or €79 once with two years of updates. More at https://coffeetext.app/llms-full.txt
