Block Types
Documents are composed of blocks. Each block has atype, content, and optional metadata.
heading
Section header. Always includemetadata.level.
| Metadata | Type | Required | Description |
|---|---|---|---|
level | int | Yes | Heading level, 1–6. Use proper hierarchy (don’t skip levels). |
paragraph
Body text with inline markdown.code
Code block with optional syntax highlighting.| Metadata | Type | Required | Description |
|---|---|---|---|
language | string | No | Language for syntax highlighting (e.g., python, javascript, bash) |
list
Bullet or numbered list. Content uses markdown list syntax.| Metadata | Type | Required | Description |
|---|---|---|---|
listType | string | No | "bullet" or "ordered" |
quote
Block quote.table
Markdown-formatted table.image
Image block.| Metadata | Type | Required | Description |
|---|---|---|---|
url | string | Yes | Image URL |
alt | string | No | Alt text |
divider
Horizontal rule. Content should be an empty string.Inline Markdown
Text content inparagraph, heading, list, and quote blocks supports inline markdown:
**bold**→ bold*italic*→ italic`code`→code[link](url)→ link