🎍上传本地markdown文件至notion中
2022-5-16
| 2023-3-9
0  |  阅读时长 0 分钟
type
status
password
date
slug
summary
category
URL
tags
icon

全局网络代理

💡
安装md2notion、上传markdown文件都需要使用代理

安装md2notion并使用

python -m md2notion [token_v2] [page-url] [...markdown_path_glob_or_url]
  • page-url是需要添加进的notion页面地址
  • markdown_path_glob_or_url就是你的md文件
There are also some configuration options:
  • --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.
  • --append: Instead of making a new child, it will append the markdown contents to the note at page-url
  • --html-img: Upload images that are memtioned in the HTML <img> tags.

配置md2notion

  • 安装好的一般使用会报错,所以需要将/usr/local/lib/python3.6/dist-packages/notion/store.py中的limit修改l为100;
    • typora中的图片有的使用 <img> tags,需要将code /usr/local/lib/python3.6/dist-packages/md2notion/upload.py中的--html-img修改为True
    • typora中使用latex,需要将code /usr/local/lib/python3.6/dist-packages/md2notion/upload.py中的--latex修改为True
     
  • 工具
  • linux常用命令WSL2配置
    Loading...
    目录