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 colorsHow 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 dateA fully featured date/time system can also be integrated as an inline block.
#
Inline MentionAnother workspace user can be mentioned using inline mention
#
Inline PageAnother workspace page can be referenced using inline page, which creates a link to that page.
#
Inline EquationNotion supports inline equations as well.