Tour of the blocks
One short story, written with every block Nabu ships. Hover any part of it to see what it is and how to make one.
- 14 blocks
- 3 text behaviours
- 4 paste handlers
- 1 transform
The last ferry
The river keeps no appointments, only debts.
- the rope
- the oar
const lantern = { lit: false };Every block, one by one
Every block, as a specimen
Plain text: the block Nabu makes for a line.
- /text
The last ferry
A title, levels 1 to 6.
- # … ######
- /h1
- /h2
- /h3
The river keeps no appointments.
A line someone else said.
- > ␣
- /quote
const lantern = { lit: false };Verbatim text, with a language.
- ```js ↵
- ```js ␣
- /code
A note set apart, with an icon and a tint.
- ! ␣
- /callout
A title that opens on what it hides.
- /toggle
- the rope
- the oar
Bullets, numbers and to-dos, nested.
- - ␣
- 1. ␣
- [ ] ␣
- /bullet
- /numbered
- /todo
Lines of speech, one speaker each.
- -- ␣ at line start
A chapter with a title, inside one continuous text.
- ::: ␣
- /section-1
- /section-2
- /section-3
- Mod-Enter
The scene changes.
- --- ␣
- /divider
A picture, stored outside the document.
- /image
- paste
- drop
A clip to play, a file to download.
- /video
- /file
- paste
- drop
Click a card to see its state, live. Chips: what you type · the slash menu · the markdown. Every key and edge case: Blocks reference
What happens as you type
Rich text
rich-textBold, italic, underline, code, strike, links, with their shortcuts.
Markdown shortcuts
markdown-shortcutsInline markdown turns into marks as you type.
Typography
typographyTwo hyphens and a space become a dash.
What happens when you paste
Nabu paste
nabu-pasteThe last ferry
Between two Nabu editors, nothing is lost.
HTML paste
html-pasteDusk
- the rope
- the oar
From web pages and applications.
Markdown paste
markdown-pasteMarkdown text becomes blocks.
Plain text paste
plain-text-pasteThe last resort: one line, one block.
Turn into
blockTurns the block holding the caret into another type, and keeps its text, its marks and its id. Slash entries and toolbar buttons are made of it. So can you: nabu.exec('block:transform', { type, props })