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

Add comments, add blockIds to MarkdownBlock #64

Closed Marviel closed 1 year ago

Marviel commented 1 year ago

Hi awesome library!

While working on a project of mine, I realized I needed to be able to trace down the block ids corresponding to a given markdown object.

I added a quick little addition to the MarkdownBlock idea to do this.

Let me know if there's anything else this needs!

(PS: Sorry about auto-formatting, editor-based)

souvikinator commented 1 year ago

Looks good to me. This should be live in the upcoming version. Thanks for the contribution :))