souvikinator / notion-to-md

Convert notion pages, block and list of blocks to markdown (supports nesting and custom parsing)
https://www.npmjs.com/package/notion-to-md
MIT License
1.08k stars 90 forks source link

@notionhq/client has changed `text` property to `rich_text` #23

Closed emoriarty closed 2 years ago

emoriarty commented 2 years ago

From version 1.0.1, @notionhq/client has renamed the text property to rich_text. Obviously, this change breaks the expected output.

Screen Shot 2022-03-05 at 07 12 44

The following notion blocks:

Screen Shot 2022-03-05 at 07 07 54

Are converted to:

#

##

###

As can be seen, the text content is lost.

I don't know what impact the other changes bring, but this is the most noticeable 😅.

Until a fix is available, use a previous version of @notionhq/client.