Magic Comments

Magic comments can be used to set the initial status of a node.

For example:

## heading 1

- item 1 <!-- markmap: foldAll -->
  - item 1.1
    - item 1.1.1
  - item 1.2
    - item 1.2.1
- item 2

## heading 2 <!-- markmap: fold -->

- item 3
  - item 3.1
- item 4
  - item 4.1

A magic comment starts with markmap:<space> and is followed by an action.

Supported Actions

fold

Fold the current node only.

foldAll

Fold the current node and all its descendents.