Skip to content
Souvik edited this page Jan 29, 2022 · 4 revisions

Welcome to the notion-to-md wiki!

What is notion-to-md?

It's a simple javascript module that lets you convert notion pages/blocks/block to markdown programmatically.

How to install?

npm i notion-to-md@latest

and you are good to go

Before using

  • This package depends on @notionhq/client and needs to be installed separately.

TODOs

  • heading
  • images
  • quotes
  • links
  • bullets
  • todo
  • inline code
  • code block
  • strikethrough, underline, bold, italic
  • nested blocks
  • callouts
  • embeds, bookmarks, videos, files (converted to links)
  • Simple tables
  • divider
  • equation block (converted to code blocks)
  • convert returned markdown object to string (toMarkdownString())
  • typescript support
  • pages inside pages/child page
  • add tests
Clone this wiki locally