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\"", - `

“info@gitea.com”

`) + `

"info@gitea.com"

`) test( "/home/gitea/mailstore/info@gitea/com", `

/home/gitea/mailstore/info@gitea/com

`) 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(