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

Behaviour for uploaded images? #55

Closed ashutoshsaboo closed 1 year ago

ashutoshsaboo commented 1 year ago

I was seeing that for images that are added to Notion via a public url are exported as is with the same url in markdown. For custom/actually uploaded images (non publicly hosted images; from the notion filepicker/drag and drop) to Notion, how does the export work?

Does it extract the image as base64 in markdown? Or how does it work? @souvikinator

souvikinator commented 1 year ago

As of now the multimedia selected from the file picker or drag and drop, the exact local path gets added. No, it does not convert the image to base64 as certain markdown parser may not render the image.

souvikinator commented 1 year ago

PR #81 address this issue. Expect it to go live in the next major update, along with various bug fixes.

Appreciate everyone's contribution in enhancing the package. :rocket: Thank you.

ashutoshsaboo commented 1 year ago

Thanks for the update! @souvikinator 🚀