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.
npm install @notion-stuff/blocks-markdown-parser
@notion-stuff/blocks-markdown-parser
depends on@notionhq/client
- 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.
export interface NotionBlocksMarkdownParserOptions {}