mdimg_hosting

command module
v0.0.0-...-f59483c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 16, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

README

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];

TODO

support markdown content I/O ways:

  • local file

support image hosting service:

  • 腾讯云COS
  • 七牛云
  • GitHub

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
src

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL