Skip to main content

A tool for downloading embedded images in a Markdown document into a dedicated directory and replacing the image links with the local ones.

Project description

Attachments Fetcher

A tool for downloading embedded images in a Markdown document into a dedicated directory and replacing the image links with the local (fetched) ones.

Usage example

For example, if you have a Markdown called input.md, with the following contents:

Hello world!
![image](https://example.com/image/storage/sample.png)

After running this script against it:

af-make-local -i input.md -o output.md -m ./media

You will find a new file called output.md with the following content:

Hello world!
![image](./media/sample.png)

and a sample.png image file, stored in the ./media directory.

Project details


Download files

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

Source Distribution

attachments-fetcher-0.0.1.tar.gz (3.6 kB view hashes)

Uploaded Source

Built Distribution

attachments_fetcher-0.0.1-py3-none-any.whl (4.3 kB view hashes)

Uploaded 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