Merlive

Mindmaps

A mindmap is a tree: each line a box under the nearest line above that is further left, grown from its root to the right. Held to the same measure.

Declared with mindmap. Of 38 features Mermaid documents for a mindmap, 33 drawn as written, 5 drawn less something. See all 38 drawn both ways, or draw one yourself.

Mermaid
Mindmap, as Mermaid draws it
Merlive
Mindmap, as Merlive draws it

What is read

mindmap is read into the same boxes and links as a flowchart, so everything else on this page holds for it: the rules, the design, Merlive's own lines. Each line is a box, and how far in from the margin it is written says which box it is under. Mermaid draws the tree round its root; Merlive draws it from its root to the right, each box right of the one it is under. Nothing a mindmap says is lost by that. What is not kept is Mermaid's own look: the root in the middle, and a colour for each branch.

WrittenRead as
The first line under mindmapThe root: a box of the kind root, so the legend and a reader's screen say which box the tree starts from
A line further in than the one above itA box under that one, joined to it by a line with nothing at either end
Lines written unevenlyEach is under the nearest line above it that is further left: Mermaid's own rule. Spaces and tabs each count as one step
A line as far left as the root, or furtherMermaid has one root and will not draw this. Drawn as a branch of the root, and said
Bare wordsA box that says them. Its id, for Merlive's own lines, is its words with _ for what an id cannot hold: Bare_words
buy[Buying things]A box with an id apart from its words: %% note buy: … names it by buy. An id may be several words (the buying side[Buying] is the_buying_side)
Two lines of the same wordsTwo boxes: every line is a box of its own. The second is Words_2 in Merlive's own lines
[Square], (Rounded), bare wordsThe design's own box, whose corners are the design's. A mindmap with both a square and a rounded box is told, once, that they are drawn alike
((Circle))A round-ended box
{{Hexagon}}A hexagon. A shape says nothing more in a mindmap: a hexagon is no decision and a circle no start or end, as they are in a flowchart, so every box is of one kind unless a class says otherwise
))Bang((A box with a heavy outline: there is no burst here. Said once
)Cloud(A round-ended box with a dashed outline: there is no cloud here. Said once
((Ordering)), with no id before itThe same shapes; the id is made from the words
Costs (each month)What Mermaid reads it as: a rounded box with the id Costs that says "each month". Words with a bracket in them go in quotes inside a shape: a["Costs (each month)"]
a["Paid: in full (or in part)"]Words in quotes, with what a bracket would otherwise end
**bold**, *italic*, in any labelKept: Mermaid reads every label of a mindmap as Markdown, in a Markdown string or not
a["`**Ordering** from quote`"], on one line or severalA Markdown string: its words, its bold and italic, and its own line breaks
Approved<br/>by a managerA line break
::icon(fa fa-book) on the line under a boxThat box's icon, where Merlive has a drawing for it. One it has not is left out and said once, and the words are kept
:::urgent large on the line under a boxThat box's kind: the first class, where several are given. A class has no colour here (Mermaid takes one from the page it is on); %% kind urgent: Needs doing today says what it means in the legend. A class on the root takes the place of root
%% words on a line of its ownA comment. After words on the same line %% is part of the words, as it is for Mermaid
title: in front matter, %% note, %% kind, %% stepAs in a flowchart
accTitle: …, accDescr: …As in a flowchart. Mermaid's own mindmap takes such a line for a box, so a mindmap that has one is not drawn by Mermaid: give the title in front matter
classDef …, style …, direction LR, and any other lineA box that says those words, as it is for Mermaid: a mindmap has no line that is not a box, an icon or a class

A mindmap is never turned top to bottom for being wide, as a flowchart is: turned, every leaf would stand beside the last and it would be wider still. %% turn: yes lets it be turned.

Not read, each named in a note, line when met: a bracket that is never closed, or closed with something after it (a[One] two); a single { or }, which opens nothing in a mindmap; an icon or a class with no box on a line above it. A line that is not read makes no box, and what is written under it goes under the nearest box above that is further left.

Feature by feature

Every feature Mermaid’s own pages set out for a mindmap, each with a sample of it in the corpus. A sample is drawn when every box, link and word it has is read and every rule passes. Drawn, less something is the same with one thing known to be missing, named beside it.

FeatureResultWhat is missing
A mindmap: a root, and what is under it by how far in each line is writtenDrawn
A root with nothing under itDrawn
Five steps in from the rootDrawn
Lines written unevenly: each is under the nearest line above it that is further leftDrawn
Lines set in with tabsDrawn
A root written at the marginDrawn
Empty lines between the lines of a treeDrawn
The first word with a semicolon after itDrawn
A line of bare words: the shape Mermaid gives when none is writtenDrawn
A squareDrawn
A rounded squareDrawn
A circleDrawn
A hexagonDrawn
A bangDrawn, less somethingA bang is a box with a heavy outline, not a burst
A cloudDrawn, less somethingA cloud is a round-ended box with a dashed outline, not a cloud
A circle, a hexagon, a square and bare words in one treeDrawn
A square and a rounded square in one treeDrawn, less somethingA square and a rounded square are the same box: its corners are the design's
An id apart from its wordsDrawn
An id of several wordsDrawn
A shape with no id before itDrawn
Bare words with a bracket in them: what is before it is the idDrawn
Words in quotes, with a colon and brackets in themDrawn
Two lines of the same words: two boxesDrawn
An icon, on the line under its boxDrawn
An icon Merlive has no drawing forDrawn, less somethingThe icon is left out
A class, on the line under its boxDrawn, less somethingA class has no colour of its own: Mermaid takes one from the page it is on
A class for the rootDrawn
A Markdown string: bold and italicDrawn
A Markdown string of several linesDrawn
Bold and italic with no Markdown string round themDrawn
A line broken with <br/>Drawn
Words long enough to be wrappedDrawn
Words in other scripts, and an emojiDrawn
A comment on a line of its own, and %% after words, which Mermaid keeps as wordsDrawn
A title in front matterDrawn
Merlive's own lines: a note on a box, by its idDrawn
A tree of many leavesDrawn
A whole mindmap: shapes, icons, a class, bold and broken linesDrawn

Written from skills/merlive/reference.md in the repository, so the two cannot disagree.

Before: Block diagramsNext: Kanban boards