Callout¶
Visually highlight important information (tips, warnings, notes, emphasis). Supports inline rich text (see Rich Text) and nested child blocks with indentation.
Syntax¶
Inline Format¶
Block Format with Children¶
[callout] Message text
Indented child content
- Nested list item
[callout] Message text "β οΈ"
Multiple child blocks
can be nested here
If no emoji is provided a default (π‘) is used.
Examples¶
Inline Format¶
[callout](Remember to back up your data "β οΈ")
[callout](Install **version 1.4** first "π")
[callout](Docs: [Reference](https://example.com) "π")
[callout](This is a simple note) // uses default emoji π‘
Block Format with Nested Content¶
[callout] Important Setup Steps "π§"
1. Install dependencies
2. Configure environment
- Check requirements
[callout] Warning
Make sure to backup before proceeding!
Builder¶
from notionary.markdown import MarkdownBuilder
markdown = (MarkdownBuilder()
.callout("Before starting, ensure you have admin access", emoji="π")
.paragraph("Follow these stepsβ¦")
.callout("Test in staging first!", emoji="β οΈ")
.build())
Reference¶
Notion API Reference
For the official Notion API reference on callout blocks, see https://developers.notion.com/reference/block#callout