Skip to content

Bug: Notion rich_text[] max length is 100, markdownToBlocks() can create more than the limit #51

Description

@roberttolton

Hi, thanks for this package!

I noted in the documentation that it should automatically try and spread data that would be too long into multiple blocks, however after using markdownToBlocks() with some data that contained many lines and line breaks, the result was a paragraph block with a rich_text array that had over 100 items, which is over Notion's API limit for rich_text items.

When reading the docs, I thought it might try and spread the excess rich_text items into other blocks, but looking at the source code it will either truncate the array or leave it as it is - I think we should create X-amount of blocks until all excess rich_text items can fit?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions