Skip to content

phpusr/markdown-to-notion

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

markdown-notes-to-notion

This script import markdown notes to Notion.

The script required PostgresQL for local cache of imported notes.

How to run

  1. Get NOTION_TOKEN and give access to your note where the data will be imported

  2. Run the script specifying the folder with notes

export NOTION_TOKEN 'secret_notion_token'
export DB_HOST 'localhost'
export DB_NAME 'notion'
export DB_USER 'notion'
export DB_PASSWORD 'notion-password'

node index.js --import /path/no/notes
  1. Some notes may not import correctly. Solutions
node index.js --show-errors
  1. After correcting the original notes that were imported with an error, they can be imported again
node index.js --import-with-errors /path/no/notes

About

This script import markdown notes to Notion.

Resources

Stars

Watchers

Forks