@benlorantfy/notion-blocks-markdown-parser
TypeScript icon, indicating that this package has built-in type declarations

5.1.9 • Public • Published

@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

  1. Get the parser instance with NotionBlocksMarkdownParser.getInstance()
    1. Optionally pass in a NotionBlocksMarkdownParserOptions object to customize the parser. The passed-in option will be merged with the default options.
  2. Call instance.parse(blocks) with blocks being Block[] that you'd get from a Notion page.

Configuration

export interface NotionBlocksMarkdownParserOptions {}

/@benlorantfy/notion-blocks-markdown-parser/

    Package Sidebar

    Install

    npm i @benlorantfy/notion-blocks-markdown-parser

    Weekly Downloads

    3

    Version

    5.1.9

    License

    MIT

    Unpacked Size

    46 kB

    Total Files

    20

    Last publish

    Collaborators

    • benlorantfy