Skip to content

vrerv/md-to-notion

Repository files navigation

MD to Notion

An upload of markdown files to a hierarchy of Notion pages.


Build status npm version

🇰🇷 (한국어) | 🇬🇧 (English)

Features

  • Upload markdown files to Notion pages with hierarchy
  • Update existing pages if the file name is same. only update changed blocks.
  • Replace local link to Notion page link automatically
  • Replace local link using custom replacement

Usage

You need to get Notion API secret and page ID to upload your markdown files. Follow this guide to get the secret and page ID.

See Example Project for live example

CLI

npx @vrerv/md-to-notion --help

Update all markdown files under the current directory to Notion page

npx @vrerv/md-to-notion -t <notion-api-secret> -p <notion-page-id> .

This project markdown files are also published as Notion pages by this package. You can see the md-to-notion Notion Page

Requirements

This package supports the following minimum versions:

  • Runtime: node >= 15
  • Type definitions (optional): typescript >= 4.5

Earlier versions may still work, but we encourage people building new applications to upgrade to the current stable.

References