aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--modules/markup/html_test.go2
-rw-r--r--modules/markup/markdown/markdown.go7
2 files changed, 1 insertions, 8 deletions
diff --git a/modules/markup/html_test.go b/modules/markup/html_test.go
index 686057d11f..a73236a7a3 100644
--- a/modules/markup/html_test.go
+++ b/modules/markup/html_test.go
@@ -208,7 +208,7 @@ func TestRender_email(t *testing.T) {
// Test that should *not* be turned into email links
test(
"\"info@gitea.com\"",
- `<p>“info@gitea.com”</p>`)
+ `<p>&#34;info@gitea.com&#34;</p>`)
test(
"/home/gitea/mailstore/info@gitea/com",
`<p>/home/gitea/mailstore/info@gitea/com</p>`)
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(