Skip to content

Add mobility to the your Markdown doc. Collect all images to a directory or replace them by base64.

License

Notifications You must be signed in to change notification settings

Shouyin/markdown-image-copy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

markdown-image-copy

Copy/download all images in a markdown file to one place, or convert them to base64 (making the markdown doc self-contained).

Notice that some markdown editors (e.g., Typora) might not display huge base64 images properly.

Usage

# save images to directory pics that locates in the same directory of where markdown_doc.md locates
python3 main.py "markdown_doc.md" -d "pics"

# convert image paths to base64 images
python3 main.py "markdown_doc.md" -b

# move images, instead of copying
python3 main.py "markdown_doc.md" -m

# modify the original markdown doc instead of creating a new one
python3 main.py "markdown_doc.md" -x

About

Add mobility to the your Markdown doc. Collect all images to a directory or replace them by base64.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages