Skip to main content

this is a description

Project description

介绍

一个小工具,将 markdown 远程的图片拉到本地来存储,并更新 markdown 文件

  1. 将 markdown 文件里的 http 开头的图片 url 地址拉到本地 ./assets 下.
  2. 更新 markdown 图片链接为本地链接
  3. 清洗你的 markdown, 只抽取将当前文件夹 markdown 里的文件所关联的图片

demo

安装依赖

依赖于 requests

pip install requests

使用方式


举例

# demo 1. 将直接覆盖本地
python mdPipe.py -i ./markdown 

# demo 2. 输出到其他文件
python mdPipe.py -i ./markdown  -o ./output

# demo 3. 清洗 markdown
python  mdPipe.py  -c  -r -i ./markdown -o ./markdown_washed

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

md_wash-0.0.2-py2.py3-none-any.whl (6.3 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page