summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Olheiser <42128690+jolheiser@users.noreply.github.com>2020-01-22 09:30:20 -0600
committerAntoine GIRARD <sapk@users.noreply.github.com>2020-01-22 16:30:20 +0100
commit53f9dbfc7bd322a439bd6c6582d69506c7244384 (patch)
treea61f70b9232112277d266a4ed2b0755c26f26563
parent4b67989c9d479739dfad83398ebcd22392c2190d (diff)
downloadgitea-53f9dbfc7bd322a439bd6c6582d69506c7244384.tar.gz
gitea-53f9dbfc7bd322a439bd6c6582d69506c7244384.zip
Don't convert ellipsis in markdown (#9905)
* Don't convert ellipsis Signed-off-by: jolheiser <john.olheiser@gmail.com> * Formatting Co-Authored-By: zeripath <art27@cantab.net> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com> Co-authored-by: zeripath <art27@cantab.net>
-rw-r--r--modules/markup/markdown/markdown.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/markup/markdown/markdown.go b/modules/markup/markdown/markdown.go
index 5230fca4dc..81b5635d3b 100644
--- a/modules/markup/markdown/markdown.go
+++ b/modules/markup/markdown/markdown.go
@@ -48,8 +48,9 @@ func RenderRaw(body []byte, urlPrefix string, wikiMarkdown bool) []byte {
common.FootnoteExtension,
extension.NewTypographer(
extension.WithTypographicSubstitutions(extension.TypographicSubstitutions{
- extension.EnDash: nil,
- extension.EmDash: nil,
+ extension.EnDash: nil,
+ extension.EmDash: nil,
+ extension.Ellipsis: nil,
}),
),
),