This is a small application to demonstrate the following three of my Notion-related projects.
With this application users can download a Notion page as a HTML file. Although recently Notion starts providing an option to export to HTML, my projects potentially give users more flexibility to customize how the blocks look.
This repository includes a demo result in data/index.html
. The original page is Notion's guide : Keyboard & Markdown Shortcuts.
npm install
orpnpm install
cp config.sample.json config.json
- If you want to download your non-public pages, open
config.json
, fill in your cookie. Otherwise, go to the next step. - Find the page ID of the page you want to download from browser's devtool, and fill in the
pageID
field ofconfig.json
. It must be the dashed version, like66e28cec-8105-48c3-a406-1513126766b0
. npm run start
- Result is saved as
data/index.html
.
- Text (With color, background color, styles.)
- Heading 1, 2, 3
- Bulleted List
- To-do List
- Toggle List
- Quote
- Web Bookmark