diff options
-rw-r--r-- | modules/markdown/markdown.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/markdown/markdown.go b/modules/markdown/markdown.go index aad0553afe..27fe09b8f4 100644 --- a/modules/markdown/markdown.go +++ b/modules/markdown/markdown.go @@ -357,6 +357,7 @@ OUTER_LOOP: // Render renders Markdown to HTML with special links. func Render(rawBytes []byte, urlPrefix string, metas map[string]string) []byte { + urlPrefix = strings.Replace(urlPrefix, string(spaceBytes), string(spaceEncodedBytes), -1) result := RenderRaw(rawBytes, urlPrefix) result = PostProcess(result, urlPrefix, metas) result = Sanitizer.SanitizeBytes(result) |