This repository was archived by the owner on Nov 2, 2023. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,13 +21,23 @@ It provides these features over Notion.so's Markdown importer:
2121* Handles nested lists properly
2222* Among other improvements...
2323
24- ## Usage with Python 3.6+
24+ Supports Python 3.6+
25+
26+ ## Usage from CLI
2527
2628* ` pip install md2notion `
29+ * Then run like ` python -m md2notion [token_v2] [page-url] [...markdown_path_glob_or_url] `
30+ * The markdown at the given path will be added as a new child to the Notion.so note at ` page-url `
31+
32+ There are also some configuration options:
2733
28- * From the command link you can run ` python -m md2notion [token_v2] [page-url] [...markdown_path_glob_or_url] `
34+ * ` --clear-previous ` : If a child of the note at ` page-url ` has the same name as what you're uploading, it will first be removed.
35+ * ` --append ` : Instead of making a new child, it will append the markdown contents to the note at ` page-url `
2936
30- * OR In your Python file:
37+ ## Usage from script
38+
39+ * ` pip install md2notion `
40+ * In your Python file:
3141``` python
3242from notion.client import NotionClient
3343from md2notion.upload import upload
Original file line number Diff line number Diff line change 22
33setup (
44 name = 'md2notion' ,
5- version = '2.0.0 ' ,
5+ version = '2.0.1 ' ,
66 description = 'Utilities for importing Markdown files to Notion.so' ,
77 long_description = open ('README.md' , 'r' ).read (),
88 long_description_content_type = "text/markdown" ,
You can’t perform that action at this time.
0 commit comments