Skip to content

Blocks

Every block you can insert from the / menu, and what readers see.

Pages are built from blocks. Type / on an empty line, or use the + beside a line, to insert one. Each block below lists the name to type in the insert menu and its Markdown form, which is what Git Sync and the Markdown export write.

Basic#

Block

Insert menu

Notes

Paragraph

Text

Headings

Heading 1–Heading 3

Headings get anchors and appear in the page outline.

Lists

Bulleted list, Numbered list, Task list

Task lists keep their checkboxes.

Quote

Quote

Divider

Divider

Inline#

Block

Insert menu

Markdown

Button

Button

<a href="…" class="button primary">Label</a>

Badge

Badge

<span class="badge" data-tone="info">Beta</span>

Footnote

Footnote

[^1] with [^1]: text after the page

Inline math

Inline math

$$x^2$$

Hints#

Four styles: Info hint, Success hint, Warning hint and Danger hint.

Info hints add useful context.

Warning hints call out something to be careful about.

{% hint style="info" %}
Info hints add useful context.
{% endhint %}

Code#

Code block highlights the language you pick and can show a title, line numbers and wrapped lines. Code group shows one sample in several languages as tabs, named by each block's title.

install.sh
npm install @acme/sdk
{% code title="install.sh" lineNumbers="true" %}
...a fenced code block...
{% endcode %}

{% code-group %}
...code blocks with titles...
{% endcode-group %}

Layout#

Block

Insert menu

Markdown

Tabs

Tabs

{% tabs %}{% tab title="…" %}…{% endtab %}{% endtabs %}

Stepper

Stepper

{% stepper %}{% step %}…{% endstep %}{% endstepper %}

Expandable

Expandable

<details><summary>Title</summary>…</details>

Columns

2 columns, 3 columns

{% columns %}{% column width="40%" %}…{% endcolumn %}{% endcolumns %}

Cards

Cards

GitBook's <table data-view="cards">

Table

Table

GitHub-flavored Markdown tables

Try an expandable

Expandables hide detail until the reader asks for it — good for FAQs and long examples.

Page link is a card for another page. It always shows that page's current title and address, even after the page is renamed or moved. Subpages shows a card for each page under the current one, kept up to date as you add pages.

{% content-ref url="guides/deploy.md" %}
[deploy.md](guides/deploy.md)
{% endcontent-ref %}

{% subpages %}

Media#

Block

Insert menu

Notes

Image

Upload image, Image from URL

With alt text and an optional caption.

Gallery

Gallery

Images side by side.

Video

Video

Upload an .mp4 or .webm, or link one.

Embed

Embed URL

YouTube, Loom, Figma and other links.

File

File

A download — PDF, ZIP, spreadsheet — up to 20 MB.

Math and diagrams#

Math equation renders TeX with KaTeX:

E=mc2E = mc^2

Mermaid diagram draws flowcharts and sequence diagrams from text, in the reader's browser:

sequenceDiagram
  Writer->>Draft: Edit
  Draft->>Reviewer: Submit for review
  Reviewer->>Space: Publish

Special blocks#

Block

Insert menu

Learn more

OpenAPI reference

OpenAPI reference

Document an API

Snippet

Snippet

Reusable content

Conditional content

Conditional content

Adaptive content

Was this helpful?

Last updated

View as Markdown