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 89 forks source link

Can you turn of loading child pages entirley? #88

Open zefman opened 1 year ago

zefman commented 1 year ago

Hi is it possible to prevent loading of all nested child pages completely? We would like to retrieve only the top level page without loading all of its children at the same time.

souvikinator commented 1 year ago

Not at the moment but I can add it to the next release. At the moment if you allow child page processing the child page content is not included in the parent content however processing child page takes extra time.

So next release it should be live

souvikinator commented 1 year ago

The feature is now in the codebase. It should be live along with other bug fixes in a day or two.

zefman commented 1 year ago

@souvikinator amazing thank you!

How hard would it be to limit the depth of the nested pages retrieved or is it all or nothing? At the moment if you try a big "home" style page it can take forever while it tries to get every nested page. It would be cool if you could say load all child pages 1 level deep for example.

souvikinator commented 1 year ago

That sure will take a lot of time to load something like that. So having a page level option makes sense.

I suggest creating a new issue for that. Ability to the add dept limit should be live in the upcoming update.