diff options
author | silverwind <me@silverwind.io> | 2020-06-13 08:10:17 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-13 02:10:17 -0400 |
commit | 2447ffc74a6e3ab57d98a52de0a7398cadb71e08 (patch) | |
tree | 031f14938ee6ce08721e19846fddb05d7978982e /modules/markup/markdown/markdown.go | |
parent | b6adf80a803ee3953917c1bc897b69a90c41de0b (diff) | |
download | gitea-2447ffc74a6e3ab57d98a52de0a7398cadb71e08.tar.gz gitea-2447ffc74a6e3ab57d98a52de0a7398cadb71e08.zip |
Disable all typographic replacements in markdown renderer (#11871)
* Disable all typographic replacements in markdown renderer
Previously we only disabled some of them. This disables all the default
replacements that goldmark's typographer extension offers, matching
GitHub's renderer.
Ref: https://github.com/yuin/goldmark#typographer-extension
Fixes: https://github.com/go-gitea/gitea/issues/11001
* remove typographer extension completely
* fix test
* really fix test
Co-authored-by: Lauris BH <lauris@nix.lv>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Diffstat (limited to 'modules/markup/markdown/markdown.go')
-rw-r--r-- | modules/markup/markdown/markdown.go | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/modules/markup/markdown/markdown.go b/modules/markup/markdown/markdown.go index 515d684686..128268bc88 100644 --- a/modules/markup/markdown/markdown.go +++ b/modules/markup/markdown/markdown.go @@ -49,13 +49,6 @@ func render(body []byte, urlPrefix string, metas map[string]string, wikiMarkdown extension.TaskList, extension.DefinitionList, common.FootnoteExtension, - extension.NewTypographer( - extension.WithTypographicSubstitutions(extension.TypographicSubstitutions{ - extension.EnDash: nil, - extension.EmDash: nil, - extension.Ellipsis: nil, - }), - ), meta.Meta, ), goldmark.WithParserOptions( |