Skip to content

Commit 2a60e72

Browse files
authored
Replace src with raw to fix image paths (#4377)
Signed-off-by: Jonas Franz <[email protected]>
1 parent cfb76cd commit 2a60e72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/markup/markdown/markdown.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ var (
101101
func (r *Renderer) Image(out *bytes.Buffer, link []byte, title []byte, alt []byte) {
102102
prefix := r.URLPrefix
103103
if r.IsWiki {
104-
prefix = util.URLJoin(prefix, "wiki", "src")
104+
prefix = util.URLJoin(prefix, "wiki", "raw")
105105
}
106106
prefix = strings.Replace(prefix, "/src/", "/raw/", 1)
107107
if len(link) > 0 {

0 commit comments

Comments
 (0)