*** This package is in alpha version please use it in your own risk This library is created to convert Notion API block response into the HTML code that can be used for the server rendering
to use the libraray please follow the instructions
- install the package using
npm i notion-to-html
command - Then in your code import it using the code
import { NotionToHtml } from "notion-to-html";
- Use the library in your code like this
const html = NotionToHtml(<YOUR-API-RESPONSE>, true);
At the current state we have following eleemnts covered:
- Bookmark - done β
- Breadcrumb - will not be done π«
- Bulleted list item - done β
- Callout - done β
- Child database - will not be done π«
- Child page - will not be done π«
- Code - done β
- Column list and column - will not be done π«
- Divider - done β
- Embed - as its requires third party software or same solution it will be moved to after-release stage β
- Equation - it will be moved to after-release stage β
- File - done β
- Headings - done β
- Image - done β
- Link Preview - will not be done π«
- Mention - will not be done π«
- Numbered list item - done β
- Paragraph - done β
- PDF - done β
- Quote - done β
- Synced block - it will be moved to after-release stage β
- Table - it will be moved to after-release stage β
- Table of contents - it will be moved to after-release stage β
- Template - will not be done π«
- To do - done β
- Toggle blocks - it will be moved to after-release stage β
- Video - it will be moved to after-release stage β (same as embed element)