This program is used to assist in recording notes in markdown format. The main function is to download and upload the images referenced in markdown to the specified image bed, and at the same time change the image address in batches.
本程序用来辅助记录markdown格式的笔记. 主要功能是将markdown中引用的图片下载并上传到指定图床,同时批量变更图片地址.
Environments
COS_BUCKETNAME
: 腾讯云COS存储桶名称COS_SECRETID
: 腾讯云访问凭证secretidCOS_SECRETKEY
: 腾讯云访问密钥secretkeyHTTP_PROXY
,HTTPS_PROXY
: http/https代理地址SOCKS5_PROXY
: socks5代理地址SOCKS5_USER
,SOCKS5_PASSWORD
: socks5代理认证用户密码
graph TD
A[Start] --> B[git clone source code];
B --> C[setting Environment Variables];
C --> D[copy markdown content into content/input.md];
D --> E[go run .];
E --> F[copy output content from content/output.md to source markdown content];
F --> G[End];
support markdown content I/O ways:
- local file
support image hosting service:
- 腾讯云COS
- 七牛云
- GitHub