diff options
author | Jonas Franz <info@jonasfranz.software> | 2018-07-05 22:36:45 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-05 22:36:45 +0200 |
commit | 2a60e72fcd275cbaa38ba894f1b9e05ab8baaebd (patch) | |
tree | a2bd974ce227748d3ac4245e7c254b6669452ad1 /modules/markup | |
parent | cfb76cd99e6185dcb3a051afe181d0430111a7f9 (diff) | |
download | gitea-2a60e72fcd275cbaa38ba894f1b9e05ab8baaebd.tar.gz gitea-2a60e72fcd275cbaa38ba894f1b9e05ab8baaebd.zip |
Replace src with raw to fix image paths (#4377)
Signed-off-by: Jonas Franz <info@jonasfranz.software>
Diffstat (limited to 'modules/markup')
-rw-r--r-- | modules/markup/markdown/markdown.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/markup/markdown/markdown.go b/modules/markup/markdown/markdown.go index 901edb80a7..3f94aa08b4 100644 --- a/modules/markup/markdown/markdown.go +++ b/modules/markup/markdown/markdown.go @@ -101,7 +101,7 @@ var ( func (r *Renderer) Image(out *bytes.Buffer, link []byte, title []byte, alt []byte) { prefix := r.URLPrefix if r.IsWiki { - prefix = util.URLJoin(prefix, "wiki", "src") + prefix = util.URLJoin(prefix, "wiki", "raw") } prefix = strings.Replace(prefix, "/src/", "/raw/", 1) if len(link) > 0 { |