Zero-dependency Python tool resolves relative links and inlines images as base64 for multimodal LLMs
Mediocre-Ease4060 · reddit · 2026-08-26
The author open-sourced markdown-link-resolver, a pure-Python micro-tool addressing two RAG scraping pain points: relative links like here break, and passing scraped images to GPT-4o or Claude 3.5 requires manually downloading and base64-encoding them. The tool 1) resolves all relative Markdown/HTML links to absolute URLs, and 2) with inlineimages=True, automatically fetches HTTP images and replaces their markdown tags with data:image/png;base64,... strings ready for LLM ingestion. Notably it has zero heavy dependencies — only the standard library (urllib, re, base64), no BeautifulSoup or Requests — and falls back gracefully on 404s. Repo: github.com/Encephos/markdown-link-resolver.
More from coding & agent
- MCP Server Released: Query Japanese Used-Car Market Price Ranges — FreedomRare7842 · 2026-08-26
- Vercel releases Run SDK for secure, lightweight code execution in agents — lgrammel · 2026-08-26
- Fine-tuned Qwen3.8-27B on custom data using a single 48GB GPU — danielhanchen · 2026-08-26
- Test Shows Flash-Vision-Excels at Kernel Dev but Fails Logic Integration — teortaxesTex · 2026-08-26
- Prime Intellect proposes 4-tier memory hierarchy for agents — ChrisGPT · 2026-08-26
- Developer Builds Unified Workspace to Debug Multi-Agent LLM Swarms — Impressive-Iron5216 · 2026-08-26