Cobertos / md2notion

A better Notion.so Markdown importer
MIT License
655 stars 65 forks source link

Feature Modes #11

Closed Cobertos closed 4 years ago

Cobertos commented 4 years ago

Adds a couple different modes

--clear-previous - Clears previous PageBlocks if passed --append - Appends to the passed Page instead

coryodaniel commented 4 years ago

Awesome!!!

Cobertos commented 4 years ago

@acg --append should add nodes to the passed page instead of creating a new page, otherwise yeah that all sounds right.

Cobertos commented 4 years ago

Though there is no way to use both --clear-previous and --append together, if that was something you were looking for?

adilnaimi commented 4 years ago

@Cobertos how to only update the content of a page in place. I have a markdown file in my Github repo that I want to use as a source for my Notion page. the --append works for page but not the content of the page itself

Cobertos commented 4 years ago

Hmm, there's no way to --append and --clear-previous (an update in place on the same page), mainly because there's no real easy way to tell where in page the markdown was appended between multiple runs.

The best I could do would be to --clear-previous on the page your appending to. Or we'd have to somehow keep track of previous uploads/add extra markers to the page to denote where it was uploaded last.

Does your use case not work to just use --clear-previous and upload the markdown file to a new page?