splitbee / react-notion

A fast React renderer for Notion pages
https://react-notion.com
MIT License
2.86k stars 151 forks source link

Add strict rendering mode #57

Closed dvdsgl closed 3 years ago

dvdsgl commented 3 years ago

Strict Mode

NotionRenderer will do its best to render your page, but in some cases it may not be able to render all content. By default, if content cannot be displayed, it will be omitted from the final render but as much content as possible will still be displayed. strict mode throws an error in cases like this, causing the entire render to fail if any page content cannot be displayed.

<NotionRenderer blockMap={blockMap} strict={true} />

Use case: rendering legal documents.

Related

dvdsgl commented 3 years ago

I am going to focus on react-notion-x for now, instead of pursuing this approach.