notion-content-render
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

notion-content-render

This is a simple walker through Notion block content structure and let you build the renderer

I created a sample of Markdown renderer and React renderer where you can freely style your component from Notion content. The exposed API matches with what Notion has provided via their official API

Example

const render = makeRenderer(mdStyleFactory);
...
render(<notion heading 1 block>) ==> '# <Notion heading one block>

References

Package Sidebar

Install

npm i notion-content-render

Weekly Downloads

2

Version

1.0.3

License

MIT

Unpacked Size

17.6 kB

Total Files

11

Last publish

Collaborators

  • lagz0ne