unifiedjs / unified

☔️ interface for parsing, inspecting, transforming, and serializing content through syntax trees
https://unifiedjs.com
MIT License
4.49k stars 110 forks source link

Notion Block AST #223

Closed pixeleet closed 1 year ago

pixeleet commented 1 year ago

Initial checklist

Problem

Not a problem, just wondering here if with the popularity of notion and how their blocks essentially map to markdown blocks it would be interesting to see a processor for MD->Notion / Notion->MD.

Solution

Probably the Block AST of Notion needs to be implemented and mapped to Markdown.

Alternatives

There are some existing libraries to do this, some better some worse. Notion itself can export MD, its' just not available through their API as function. It might be just plain stupid of an idea. Idk. Let me know.

ChristianMurphy commented 1 year ago

Welcome @pixeleet! 👋

it would be interesting to see a processor for MD->Notion / Notion->MD.

It could be.

Are you (@pixeleet) interested in helping to create/maintain these? This would likely be a whole new organization/set of projects, similar to how remark, rehype, redot, and mdx exist on their own, each building off unified.

Or are you interested in sponsoring others to create these packages for you? (I know @wooorm, @Murderlon, and @remcohaszing at times do consultancy/sponsored work).

Speaking just for myself, I don't personally use Notion currently, nor have interest in spending personal time creating/maintaining a broad swath of packages I won't use in the foreseeable future. But, I am happy to offer guidance and assistance to community members interested in spearheading new projects.

Probably the Block AST of Notion needs to be implemented and mapped to Markdown.

There are some existing efforts to do mapping:

Some existing efforts to standardize the notion AST in:

And previous discussion on how that could/would fit with unified:

Notion itself can export MD, its' just not available through their API as function.

Another alternative, would be gently nudging Notion to support markdown in their API. 🙂

wooorm commented 1 year ago

Closing as this is not a thing that is actionable to this repo. I don’t have anything to add to Christian’s answer!

github-actions[bot] commented 1 year ago

Hi! This was closed. Team: If this was fixed, please add phase/solved. Otherwise, please add one of the no/* labels.

pixeleet commented 1 year ago

I'm happy to contribute on this, the outline seems clear to me, thanks for the elaborate response @ChristianMurphy