@notion-stuff/blocks-markdown-parser
v6.0.0
Published
This is a parser to parse Notion blocks to Markdown. If you're here, you are probably aware of the [Notion API](https://developers.notion.com/), which is currently in beta. Hence, this parser is being updated (trying to) as the Notion API is updated.
Downloads
900
Readme
@notion-stuff/blocks-html-parser
This is a parser to parse Notion blocks to Markdown. If you're here, you are probably aware of the Notion API, which is currently in beta. Hence, this parser is being updated (trying to) as the Notion API is updated.
Installation
npm install @notion-stuff/blocks-markdown-parser
@notion-stuff/blocks-markdown-parser
depends on@notionhq/client
Usage
- Get the parser instance with
NotionBlocksMarkdownParser.getInstance()
- Optionally pass in a
NotionBlocksMarkdownParserOptions
object to customize the parser. The passed-in option will be merged with the default options.
- Optionally pass in a
- Call
instance.parse(blocks)
withblocks
beingBlock[]
that you'd get from a Notion page.
Configuration
export interface NotionBlocksMarkdownParserOptions {}