Skip to content

Lists, quotes, tables and code

Every block Kirbon draws, with the exact rules for tasks, callouts, dividers, tables and fences.

Lists

In the fileKirbon shows
- item, * item, + itemA bulleted list
1. item or 1) itemA numbered list
3. item firstA numbered list that starts at 3
1. 1. 1.1, 2, 3 — only the first number counts
Items indented under an item’s textA nested list
A blank line, then an indented paragraphA second paragraph of the same item
Code, quotes, tables, images and files indented under an itemThose blocks inside the item

Good to know:

  • Changing the marker starts a new list. - items followed by * items are two lists, and so are 1. items followed by 1) items.
  • A numbered list interrupts a paragraph only when it starts at 1. 2. something on the line right after text stays part of the paragraph; put a blank line before it.
  • Blank lines between items don’t change how the list looks.
  • Kirbon writes new items with the marker the file already uses.

Tasks

In the fileKirbon shows
- [ ] Open taskAn empty checkbox
- [x] Done, - [X] DoneA ticked checkbox
1. [ ] StepA numbered task
- [ ] with nothing after itAn empty task, ready to type in
- [] textA bullet with the text “[] text” — the box needs a space

Clicking a checkbox ticks it and saves the page — in Visual and in Preview. Only the space or x inside the box changes in the file.

Quotes

> at the start of a line makes a quote; > > a quote inside a quote. A quote can hold paragraphs, lists, headings, code, tables and images.

A line without > right after a quoted line still belongs to the quote (CommonMark calls it a lazy line). To end a quote, leave a blank line after it.

Callouts

A callout is a GitHub alert: a quote whose first line is a type marker.

> [!WARNING]
> Production access needs a second approver.
First line of the quoteKirbon shows
> [!NOTE], > [!TIP], > [!IMPORTANT], > [!WARNING], > [!CAUTION]A callout of that type with its icon and name
> [!note]A plain quote that shows “[!note]” — the type must be in capitals
> [!NOTE] Before you startA plain quote: nothing may follow the marker on its line
> [!INFO], > [!DANGER], > [!SUCCESS]A plain quote: only GitHub’s five types are callouts
> [!TIP] aloneAn empty Tip callout, ready to type in

The callout’s text starts on the line after the marker. An image or a file right under the marker is drawn as in any other paragraph. A diagram fence inside a callout stays a code block.

Callouts have no custom titles: a bold first line is the usual way to give one a heading. Panels from other wikis (Info, Note, Error…) map to these five types — see Moving from a wiki.

Dividers

---, ***, ___ and - - - on a line of their own are dividers. Kirbon writes ---.

A line of text right above --- becomes a level-2 heading instead: leave a blank line between them.

Tables

| Service | Owner    | Port |
| :------ | :------: | ---: |
| Gateway | Platform | 8080 |
In the fileKirbon shows
A header row, then a | --- | lineA table; without the second line it’s text with pipes
:---, :---:, ---:A column aligned left, centred, right
A row with fewer cellsThe missing cells empty
A row with more cellsThe extra cells left out of the table (they stay in the file)
<br> in a cellA line break inside the cell
Bold, italic, links, inline code in a cellShown as in text
![…](…) or <img … width="30%"> in a cellThe picture, small; a click shows it full size
[review.pdf](…) in a cellA link — files in cells aren’t chips
An HTML <table>An HTML block, kept as written

A pipe inside a cell is written with a backslash, \| — inside inline code too: `a \| b`. An unescaped | always ends the cell, even in code.

Markdown tables have no merged cells, no lists or code blocks inside cells and no column widths; <br> is the way to put several lines in a cell. How tables are edited and how wide tables scroll is on Tables.

Code blocks

In the fileKirbon shows
```swift … ```Code with colours for that language, a language label and Copy
~~~ … ~~~A code block too; it can contain ``` lines
A fence without a languagePlain code
Four spaces or a tab before each line, after a blank lineA code block (indented code)
```js title="app.js"JavaScript: the first word is the language, the rest stays in the file (Kirbon 1.1 and later)
``` that is never closedCode to the end of the page
```mermaid, ```math, ```d2…A drawing — see below

Coloured languages: Swift, Kotlin, Java (also Groovy and Scala), JavaScript and TypeScript (js, jsx, ts, tsx, mjs), Go, Rust, C, C++, C# and Objective-C, Python, Ruby, shell (bash, sh, zsh, shell, console), Dockerfile, SQL, YAML, JSON, HTML, XML and SVG, CSS (also SCSS and Less). Code in any other language is shown plain, with its label. The language word can be in any case.

Line numbers are a display setting — hover a block to turn them on; nothing is written to the file.

Diagrams and formulas

A fence whose first word names a notation is drawn instead of shown as code: mermaid, plantuml or puml, dot or graphviz, d2, vega-lite, vega, wavedrom, nomnoml, pikchr, svgbob or bob, and math for a LaTeX formula. The word can be in any case and have more after it.

Fences inside lists, quotes and callouts stay code blocks. With Settings ▸ Editor ▸ Draw diagrams and formulas off, every fence shows as code. Everything about diagrams — and BPMN and draw.io files — is on Diagrams and formulas.