]> source.dussan.org Git - gitea.git/commit
Fix relative links in postprocessed images (#16334)
authorzeripath <art27@cantab.net>
Sun, 4 Jul 2021 09:26:04 +0000 (10:26 +0100)
committerGitHub <noreply@github.com>
Sun, 4 Jul 2021 09:26:04 +0000 (10:26 +0100)
commit32fd11395b7631cd226783a98b86e55192bd99ca
tree57a9010bd52a9890e88a320668bb80d2747d1540
parentfae07cbc8fece383c88ed7b13474a94133c4accf
Fix relative links in postprocessed images (#16334)

If a pre-post-processed file contains relative img tags these need to be updated
and joined correctly with the prefix. Finally, the node attributes need to be updated.

Fix #16308

Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: 6543 <6543@obermui.de>
modules/markup/html.go
modules/markup/html_test.go