InlineBlocks
Inline block module as the name suggests is responsible for creating, decorating and formatting inline blocks. These inline blocks can be embedded inside of a text, thus they are known as inline blocks. These generated blocks can then be used in the title properties of various blocks.
There are various kinds of inline blocks that Notion supports:
- Date
- Mention
- Page
- Equation
- Text
- Links
All the above inline blocks can be highlighted with a few selection of colors and background colors.
Inline Texts#
Adding texts#
Adding Links#
Adding Formats#
Adding highlight colors#
How add works
All the format methods called after add will work on that chuck of inline block. For example
Call text
Remember to call the text property at last to get the actual format value suitable to be used as a title.
Check out the API section to learn more about the supported highlight, formats and methods.
Inline date#
A fully featured date/time system can also be integrated as an inline block.
Inline Mention#
Another workspace user can be mentioned using inline mention
Inline Page#
Another workspace page can be referenced using inline page, which creates a link to that page.
Inline Equation#
Notion supports inline equations as well.