aboutsummaryrefslogtreecommitdiffstats
path: root/modules/markup/markdown/markdown.go
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2019-07-19 04:23:27 +0800
committertechknowlogick <techknowlogick@gitea.io>2019-07-18 16:23:27 -0400
commit8ad64574ee80692ccc39c797ff88f65f09449412 (patch)
tree02d2fd784191bad1aa557483928fd2611d73b693 /modules/markup/markdown/markdown.go
parentbe9d67f8876eef577925e4ca8458aa72fcc822e5 (diff)
downloadgitea-8ad64574ee80692ccc39c797ff88f65f09449412.tar.gz
gitea-8ad64574ee80692ccc39c797ff88f65f09449412.zip
Fix markdown invoke sequence (#7513)
Diffstat (limited to 'modules/markup/markdown/markdown.go')
-rw-r--r--modules/markup/markdown/markdown.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/markup/markdown/markdown.go b/modules/markup/markdown/markdown.go
index aab951c60f..d9fc768891 100644
--- a/modules/markup/markdown/markdown.go
+++ b/modules/markup/markdown/markdown.go
@@ -153,7 +153,7 @@ func RenderRaw(body []byte, urlPrefix string, wikiMarkdown bool) []byte {
}
body = blackfriday.Markdown(body, renderer, exts)
- return body
+ return markup.SanitizeBytes(body)
}
var (