Split Rich Text Only
AI-generatedSummary
Split rich text into manageable blocks based on specified character limits and block types.
Inputs
- richText (required) — The Notion rich text array to split and append, e.g. '[{"type": "text", "text": {"content": "Hello"}}]'.
- maxChars — Maximum characters per rich text block (Notion limit is 2,000), default is 1900.
- blockType — The type of block to create: 'Paragraph', 'Heading 1', 'Heading 2', 'Heading 3', 'Quote', or 'Callout', default is 'paragraph'.
Output shape
A list of split rich text blocks.
Returns an array of blocks, their count, and a preview of each block's content.
Examples
Example 1: Split a long rich text into smaller blocks
Input rich text exceeding character limit and specify paragraph block type.