mchlkucera / notion-to-html

API for converting Notion database items to simple HTML
36 stars 19 forks source link

Ignore unsupported blocks message to allow utility blocks #9

Open alez156 opened 1 year ago

alez156 commented 1 year ago

It'd be cool to be able to have things like /pages or /template inside the notion article. This is to allow adding extra documentation/notes about the article that is not meant to be seen by the user. It'd be also be helpful to add template buttons with blocks I keep reusing.

As of now, if I have this in the notion article:
image

It shows up like this after running the automation: image

Would it be possible to just ignore those and don't show any text? This would allow people to use utility blocks like I mentioned above :)

mchlkucera commented 1 year ago

I added a new param ignoreErrors. When set to true, the Unsupported block error is ignored and won't show up in your content.

alez156 commented 1 year ago

Perfect! It was able to ignore the template button. However, a /page does appear.

image image
mchlkucera commented 1 year ago

Do you feel like a "Page" block should be just ignored?

alez156 commented 1 year ago

Yea, I don't see any use to show /pages