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

Adding a dummy `heading_4` type #102

Closed kmlbgn closed 7 months ago

kmlbgn commented 8 months ago

Hi there,

I'm submitting this Pull Request to propose a non-intrusive solution aimed at static website generators like Docusaurus, which typically reserve H1 headings (#) for page titles, making them unusable for other purposes within the content. This is quite annoying as Notion only has 3 types.

image

The changes I've implemented provide a workaround that allows any stack built on top of notion-to-md the possibility to increment heading levels by 1 if needed before calling notion-to-md, without the necessity for extensive modifications to the codebase.

@souvikinator

kmlbgn commented 7 months ago

Any opinion ?