Relative image paths in markdown files are not resolved #7
- @k33g opened this issue · Sep 15, 2026edited
Voici la traduction :
I have a project called
work-with-llama-cppin thedocker-agent-cookbookorganization. In theREADME.md, if I want to include images from the repository's/assetsfolder, I can't use the following path:Instead, I have to use the full path starting from the organization:
repository: https://rickub.com/docker-agent-cookbook/work-with-llama-cpp/tree/main
- @ogirardot · Sep 18, 2026edited
on it thx
- @ogirardot · Sep 18, 2026edited
Fixed by !331, merged and deployed.
Relative image destinations in READMEs and markdown file views now resolve to the repo's raw endpoint at the ref being viewed — your repo's README now renders
as/docker-agent-cookbook/work-with-llama-cpp/raw/main/assets/01-llamacpp.png, and the hand-written absolute path from this issue keeps working unchanged. The./assets/...form works from the repo root, and images inside adocs/markdown file resolve relative to that file's own directory.Scope note: relative images are rewritten; relative links (
[text](./docs/x.md)) are intentionally left for a follow-up — a link should open the tree/blob view, and choosing between tree and blob needs to know whether the target is a file or a directory (one engine lookup per link at render time). - @ogirardot · Sep 18, 2026edited
it's fixed and deployed, thanks for the report
Sign in to comment.