Skip to content

将markdown中引用的图片上传到图床并更新link

License

Notifications You must be signed in to change notification settings

baijinping/mdimg_hosting

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mdimg_hosting

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中引用的图片下载并上传到指定图床,同时批量变更图片地址.

Run

Environments

  • COS_BUCKETNAME: 腾讯云COS存储桶名称
  • COS_SECRETID: 腾讯云访问凭证secretid
  • COS_SECRETKEY: 腾讯云访问密钥secretkey
  • HTTP_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];
Loading

TODO

support markdown content I/O ways:

  • local file

support image hosting service:

  • 腾讯云COS
  • 七牛云
  • GitHub

About

将markdown中引用的图片上传到图床并更新link

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages