Don't transform quotes in Markdown #5202

Closed
opened 2025-11-02 06:17:40 -06:00 by GiteaMirror · 4 comments
Owner

Originally created by @silverwind on GitHub (Apr 7, 2020).

Quotes outside of code blocks (example) are currently transformed to U+201C Left Double Quotation Mark and U+201D Right Double Quotation Mark. I think this transformation is generally unwanted and confusing because it alters the original content, so I'd like to see it removed. GitHub also does not do this.

Originally created by @silverwind on GitHub (Apr 7, 2020). Quotes outside of code blocks ([example](https://try.gitea.io/silverwind/symlink-test/issues/5)) are currently transformed to [U+201C Left Double Quotation Mark](https://www.compart.com/en/unicode/U+201C) and [U+201D Right Double Quotation Mark](https://www.compart.com/en/unicode/U+201D). I think this transformation is generally unwanted and confusing because it alters the original content, so I'd like to see it removed. GitHub also does not do this.
GiteaMirror added the type/proposal label 2025-11-02 06:17:40 -06:00
Author
Owner

@bagasme commented on GitHub (Apr 7, 2020):

@silverwind keep the quotes as-is?

@bagasme commented on GitHub (Apr 7, 2020): @silverwind keep the quotes as-is?
Author
Owner

@silverwind commented on GitHub (Apr 7, 2020):

@bagasme yes that would be my preference. The less "magic" the better.

@silverwind commented on GitHub (Apr 7, 2020): @bagasme yes that would be my preference. The less "magic" the better.
Author
Owner

@guillep2k commented on GitHub (Apr 8, 2020):

I agree, but maybe make it optional for wikis.

@guillep2k commented on GitHub (Apr 8, 2020): I agree, but maybe make it optional for wikis.
Author
Owner

@zeripath commented on GitHub (Apr 13, 2020):

Changing the default now is difficult to necessarily sign off. However, #11047 shows the way to do it.

Add a new frontmatter part:

---
gitea:
    typography: -smartQuotes
---
@zeripath commented on GitHub (Apr 13, 2020): Changing the default now is difficult to necessarily sign off. However, #11047 shows the way to do it. Add a new frontmatter part: ``` --- gitea: typography: -smartQuotes --- ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#5202