Package Exports
- @vrerv/md-to-notion
- @vrerv/md-to-notion/build/src/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@vrerv/md-to-notion) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
MD to Notion
An upload of markdown files to a hierarchy of Notion pages.
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
- Delete(archive) notion pages that does not exist(deleted files) in local (not to delete by default)
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 using GitHub Actions. You can see the md-to-notion Notion Page
Requirements
This package supports the following minimum versions:
- Runtime:
node >= 16
- 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
- notion-sdk-js
- martian
- markdown2notion - Initially I tried to use this but need more feature for my use case