A diagram is useful when the relationship matters more than the sentence order. A mindmap groups ideas, a timeline shows sequence, a comparison separates alternatives, and a flowchart makes a decision visible.

This sample uses an imaginary explanation-writing workflow throughout. Every visualization has editable source, and none of the examples describes a real research project or historical timeline.

Begin with a nested list

A mindmap is an ordinary nested Markdown list inside mindmap. Indentation defines the relationships. The renderer supplies the drawing and keeps a complete text outline.

markdown
:::mindmap[An explanation worth keeping]{layout="map"}
- A useful explanation
- Question
- Name the uncertainty
- State the assumptions
- Evidence
- Work through an example
- Keep the source
- Interpretation
- Explain the connection
- Identify a limitation
- Next step
- Try a counterexample
- Refine the model
:::
An explanation worth keeping
A useful explanationA useful explanation−EvidenceEvidence−Work through an exampleWork through an exampleKeep the sourceKeep the sourceNext stepNext step−Try a counterexampleTry a counterexampleRefine the modelRefine the modelQuestionQuestion−Name the uncertaintyName the uncertaintyState the assumptionsState the assumptionsInterpretationInterpretation−Explain the connectionExplain the connectionIdentify a limitationIdentify a limitation
A useful explanationA useful explanation−EvidenceEvidence−Work through an exampleWork through an exampleKeep the sourceKeep the sourceNext stepNext step−Try a counterexampleTry a counterexampleRefine the modelRefine the modelQuestionQuestion−Name the uncertaintyName the uncertaintyState the assumptionsState the assumptionsInterpretationInterpretation−Explain the connectionExplain the connectionIdentify a limitationIdentify a limitation

13 nodes · View the text outline below for a readable alternative.

Read text outline
  • A useful explanation
    • Question
      • Name the uncertainty
      • State the assumptions
    • Evidence
      • Work through an example
      • Keep the source
    • Interpretation
      • Explain the connection
      • Identify a limitation
    • Next step
      • Try a counterexample
      • Refine the model

Try it: select a branch and collapse its children. Search for “counterexample” to find a node even if its branch is closed. Use Fit to bring the visible structure back into view.

When the map has keyboard focus, Up/Down traverses visible nodes, Right expands or enters a branch, and Left collapses or returns to its parent. Space or Enter toggles a selected branch. Search, selection, and collapse are reader navigation; they do not edit the article's Markdown.

Use a tree for a directional hierarchy

The tree layout puts the hierarchy to the right of its root. The same list-based format works for an outline, a decision hierarchy, or a small taxonomy.

markdown
:::mindmap[Review checklist]{layout="tree"}
- Review an explanation
- Meaning
- Claim is explicit
- Terms are defined
- Evidence
- Example can be checked
- Sources can be found
- Presentation
- Labels are readable
- Alternatives remain accessible
:::
Review checklist
Review an explanationReview an explanation−MeaningMeaning−Claim is explicitClaim is explicitTerms are definedTerms are definedEvidenceEvidence−Example can be checkedExample can be checkedSources can be foundSources can be foundPresentationPresentation−Labels are readableLabels are readableAlternatives remain accessibleAlternatives remain accessible
Review an explanationReview an explanation−MeaningMeaning−Claim is explicitClaim is explicitTerms are definedTerms are definedEvidenceEvidence−Example can be checkedExample can be checkedSources can be foundSources can be foundPresentationPresentation−Labels are readableLabels are readableAlternatives remain accessibleAlternatives remain accessible

10 nodes · View the text outline below for a readable alternative.

Read text outline
  • Review an explanation
    • Meaning
      • Claim is explicit
      • Terms are defined
    • Evidence
      • Example can be checked
      • Sources can be found
    • Presentation
      • Labels are readable
      • Alternatives remain accessible

Readers can change Map/Tree in the controls. Expanded viewing opens a dedicated dialog and retains the current selection and layout. The More menu offers depth and branch controls, SVG/PNG export, and a copy of the complete Markdown outline.

On touch screens, ordinary scrolling continues through the article. Enable Explore map when you want to pan or pinch inside the visualization. The text outline is also a useful way to read a larger map without navigating its canvas.

Make a sequence visible with a timeline

A timeline uses a list rather than a separate JSON language. Each item needs enough context to stand on its own.

markdown
:::timeline[Four passes through an explanation]
- **Question** — Describe the uncertainty in one sentence.
- **Sketch** — Connect a model to a simple example.
- **Check** — Look for an assumption or counterexample that changes the result.
- **Revision** — Keep the supported claim and record the remaining question.
:::

Four passes through an explanation

  • Question — Describe the uncertainty in one sentence.
  • Sketch — Connect a model to a simple example.
  • Check — Look for an assumption or counterexample that changes the result.
  • Revision — Keep the supported claim and record the remaining question.

This is an authored process timeline. The site's Archive is different: it is generated from publication dates and does not need a Markdown timeline component.

Compare alternatives side by side

Use comparison when the reader needs to weigh alternatives. Two to four option children are supported. As with rich tabs, the outer fence is longer than its children's fences.

markdown
::::comparison[Which representation helps here?]
:::option[A concise list]
- Easy to scan in a fixed order.
- Easy to edit, quote, and copy.
- Best when the hierarchy is shallow.
:::
:::option[A diagram]
- Makes connections and branches visible.
- Useful for exploring a relationship.
- Needs a readable text alternative.
:::
::::

Which representation helps here?

A concise list

  • Easy to scan in a fixed order.
  • Easy to edit, quote, and copy.
  • Best when the hierarchy is shallow.

A diagram

  • Makes connections and branches visible.
  • Useful for exploring a relationship.
  • Needs a readable text alternative.

The options stack on a phone. A comparison is a reading layout, not a control that chooses a winner for the reader.

Describe a decision with Mermaid

Use a mermaid fence when a diagram needs explicit edges and decisions. This flowchart makes revision a visible branch rather than implying that every first attempt succeeds.

markdown
```mermaid
flowchart LR
Q["Ask one question"] --> M["Make a model"]
M --> T["Try an example"]
T --> D{"Does it explain the result?"}
D -- "Not yet" --> M
D -- "Enough for now" --> N["Write the limits"]
```
Diagram

Not yet

Enough for now

Ask one question

Make a model

Try an example

Does it explain the result?

Write the limits

Not yet

Enough for now

Ask one question

Make a model

Try an example

Does it explain the result?

Write the limits

View Mermaid source
flowchart LR
  Q["Ask one question"] --> M["Make a model"]
  M --> T["Try an example"]
  T --> D{"Does it explain the result?"}
  D -- "Not yet" --> M
  D -- "Enough for now" --> N["Write the limits"]

The explanation around a diagram still matters. Here, “enough for now” means the article states a limited claim with visible assumptions; it does not mean that a single example proves a general result.

Show an exchange with a sequence diagram

A sequence diagram emphasizes who sends information and in what order. It is useful for software interactions as well as explanatory workflows.

markdown
```mermaid
sequenceDiagram
autonumber
participant R as Reader
participant A as Article
participant N as Notes
R->>A: Follow a claim
A-->>R: Show evidence and a source
R->>N: Record an unanswered question
N-->>R: Suggest the next investigation
```
Diagram
NotesArticleReaderNotesArticleReaderFollow a claim1Show evidence and a source2Record an unanswered question3Suggest the next investigation4
NotesArticleReaderNotesArticleReaderFollow a claim1Show evidence and a source2Record an unanswered question3Suggest the next investigation4
View Mermaid source
sequenceDiagram
  autonumber
  participant R as Reader
  participant A as Article
  participant N as Notes
  R->>A: Follow a claim
  A-->>R: Show evidence and a source
  R->>N: Record an unanswered question
  N-->>R: Suggest the next investigation

Keep diagrams useful in every reading mode

Mindmaps and Mermaid diagrams are compiled to static light/dark SVG before publication. The reader's device does not need to run Mermaid to draw these examples. Mindmap exploration is a separate enhancement; its static drawing and text outline remain available if that enhancement cannot load.

Mermaid includes a source disclosure so the diagram's description remains inspectable. Mindmaps retain their complete nested outline. Print styles present the diagrams and the full mindmap structure without requiring interactive controls.

When adapting this article, choose the smallest representation that explains the relationship. Give every diagram a sentence that says what to notice, and keep labels short enough to read at ordinary article width.