diff options
| author | Jason A. Dönerfield <no-replay@sl0p.foo> | 2026-07-15 16:13:14 +0200 |
|---|---|---|
| committer | Jason A. Dönerfield <no-replay@sl0p.foo> | 2026-07-15 16:13:14 +0200 |
| commit | d191bab7341da2242c7d0be92fa01465e64757f2 (patch) | |
| tree | c7782618c78800024a71ea240ab7a6c9bc7dd485 /parsing.c | |
| parent | ui-summary: optionally render the repo readme on the summary page (diff) | |
| download | cgit-d191bab7341da2242c7d0be92fa01465e64757f2.tar.gz cgit-d191bab7341da2242c7d0be92fa01465e64757f2.tar.xz cgit-d191bab7341da2242c7d0be92fa01465e64757f2.zip | |
md2html: rewrite relative image links to the plain/ blob URL
A README's relative image paths (screenshots/foo.png) are repo blobs that
cgit only serves via its plain command, but a browser resolves a relative
<img src> against the about-page URL, so the image 404s. Rewrite relative
<img src> to an absolute /<repo>/plain/<path>?h=<branch> URL using the
CGIT_REPO_URL / CGIT_REPO_DEFBRANCH environment cgit gives the about-filter.
Absolute so it also works with ui-summary readme rendering.
Diffstat (limited to 'parsing.c')
0 files changed, 0 insertions, 0 deletions
