View Source Notion.Object.Block (ElixirNotionAPI v0.3.4)

A block object represents content within Notion. Blocks can be text, lists, media, and more. A page is a type of block, too!

https://developers.notion.com/reference/block

Link to this section Summary

Functions

returns a divider block

creates a heading 1 block with a singular rich text object

creates a heading 2 block with a singular rich text object

creates a heading 3 block with a singular rich text object

creates a heading 1 block with a singular rich text object

This is not an official block, rather a paragraph block that holds a single URL

Link to this section Functions

returns a divider block

%{type: "divider", divider: %{}}

Link to this function

heading_1_block(content, color \\ "default")

View Source

creates a heading 1 block with a singular rich text object

Link to this function

heading_2_block(content, color \\ "default")

View Source

creates a heading 2 block with a singular rich text object

Link to this function

heading_3_block(content, color \\ "default")

View Source

creates a heading 3 block with a singular rich text object

Link to this function

paragraph_block(content, children \\ [], color \\ "default")

View Source

creates a heading 1 block with a singular rich text object

https://developers.notion.com/reference/rich-text

Link to this function

url_block(url, content, color \\ "default")

View Source

This is not an official block, rather a paragraph block that holds a single URL