]> source.dussan.org Git - gitea.git/commit
Fix relative links in postprocessed images (#16334) (#16340)
authorzeripath <art27@cantab.net>
Sun, 4 Jul 2021 14:28:29 +0000 (15:28 +0100)
committerGitHub <noreply@github.com>
Sun, 4 Jul 2021 14:28:29 +0000 (16:28 +0200)
commitc65e49d72f823d10d045dc7a50fee96953527b76
tree91112f5e4c016f61d55e51a050a3604d36361021
parent50084daa4c21a8a539d1ac12351e24cdf33ff899
Fix relative links in postprocessed images (#16334) (#16340)

* 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