Markdown Link Resolver
A zero-dependency Python micro-tool to resolve relative links and image paths in Markdown files to absolute URLs. Perfect for web scraping, RAG pipelines, and LLM data preparation.
Installation
pip install markdown-link-resolver
(For local development: pip install -e .)
Usage
from markdown_link_resolver import resolve_markdown_links
base_url = "[https://example.com/blog/](https://example.com/blog/)"
dirty_markdown = "Check out our [about us](../about) page or our ."
clean_markdown = resolve_markdown_links(dirty_markdown, base_url)
print(clean_markdown)
# Output: Check out our [about us](https://example.com/about) page or our .
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file markdown_link_resolver-0.1.0.tar.gz.
File metadata
- Download URL: markdown_link_resolver-0.1.0.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b571bc20180ac216db4484f27e5d9f9214228b37b8f13f65c37c00813f389c54
|
|
| MD5 |
e8d3c71023af76e4fafa9e7fa359c601
|
|
| BLAKE2b-256 |
2ccd7286687be2fd414f8f6a2b7779bd1260563d5cd696b0f37a5db63f0b39c0
|
Provenance
The following attestation bundles were made for markdown_link_resolver-0.1.0.tar.gz:
Publisher:
publish.yml on Encephos/markdown-link-resolver
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
markdown_link_resolver-0.1.0.tar.gz -
Subject digest:
b571bc20180ac216db4484f27e5d9f9214228b37b8f13f65c37c00813f389c54 - Sigstore transparency entry: 2596936452
- Sigstore integration time:
-
Permalink:
Encephos/markdown-link-resolver@8782caa6b0405cf9f0bdb3958ca3e554c919c185 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/Encephos
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@8782caa6b0405cf9f0bdb3958ca3e554c919c185 -
Trigger Event:
release
-
Statement type:
File details
Details for the file markdown_link_resolver-0.1.0-py3-none-any.whl.
File metadata
- Download URL: markdown_link_resolver-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
06100601eae5592e2a38d9154507f8137cc18d707d5507cd204137c9101202fa
|
|
| MD5 |
02698b4bbf17d4e145e16c32fcbe7acf
|
|
| BLAKE2b-256 |
54fd07ce4aafc18590a08f675a6653ca00d0231127e4a5c3da1295ae3dbc5e7e
|
Provenance
The following attestation bundles were made for markdown_link_resolver-0.1.0-py3-none-any.whl:
Publisher:
publish.yml on Encephos/markdown-link-resolver
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
markdown_link_resolver-0.1.0-py3-none-any.whl -
Subject digest:
06100601eae5592e2a38d9154507f8137cc18d707d5507cd204137c9101202fa - Sigstore transparency entry: 2596936499
- Sigstore integration time:
-
Permalink:
Encephos/markdown-link-resolver@8782caa6b0405cf9f0bdb3958ca3e554c919c185 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/Encephos
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@8782caa6b0405cf9f0bdb3958ca3e554c919c185 -
Trigger Event:
release
-
Statement type: