]> source.dussan.org Git - gitea.git/commit
Fix missing images in editor preview due to wrong links (#31299) (#31393)
authorwxiaoguang <wxiaoguang@gmail.com>
Mon, 17 Jun 2024 07:07:21 +0000 (15:07 +0800)
committerGitHub <noreply@github.com>
Mon, 17 Jun 2024 07:07:21 +0000 (15:07 +0800)
commitfa307167f97a185fefd58f016a96ccdf55783b1c
tree83c3b6d9f0f92da78c648fa8dbd77b8af466a97c
parent3f44844244dd5e6329bbfaf29a3d5b4b244ab84f
Fix missing images in editor preview due to wrong links (#31299) (#31393)

Backport #31299

Parse base path and tree path so that media links can be correctly
created with /media/.

Resolves #31294

---------

Co-authored-by: Brecht Van Lommel <brecht@blender.org>
modules/markup/renderer.go
modules/structs/miscellaneous.go
routers/api/v1/misc/markup_test.go
routers/common/markup.go
templates/swagger/v1_json.tmpl