this is a description
Project description
介绍
一个小工具,将 markdown 远程的图片拉到本地来存储,并更新 markdown 文件
- 将 markdown 文件里的 http 开头的图片 url 地址拉到本地 ./assets 下.
- 更新 markdown 图片链接为本地链接
- 清洗你的 markdown, 只抽取将当前文件夹 markdown 里的文件所关联的图片
安装依赖
依赖于 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
Close
Hashes for md_wash-0.0.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 61e705cb1dc32d41b57bde675c818782737d7e5152259f8da876bc9574d9d131 |
|
MD5 | 9f7d9031635db7bb28622146cc297513 |
|
BLAKE2b-256 | 4cbceaa1cc620f7f604c0342a9bd2720b75d2244305ee88a8789e09b4d009fff |