-
-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Closed
Labels
issue/needs-feedbackFor bugs, we need more details. For features, the feature must be described in more detailFor bugs, we need more details. For features, the feature must be described in more detailoutdated/theme/markdowntype/upstreamThis is an issue in one of Gitea's dependencies and should be reported thereThis is an issue in one of Gitea's dependencies and should be reported there
Description
Description
When you use double quotes in a heading, Gitea removes them from the reference link.
Example:
If you use a header with double quotes like:
## Header with "double quotes"
Gitea generated link to that header is <URL>#header-with-double-quotes
instead of <URL>#header-with-"double-quotes"
.
This behaviour leads to inconsistency between renderers, even between those which follow CommonMark specs. For example VSCode's Markdown preview (which follows CommonMark specs) keeps the double quotes in the links.
I reproduced the issue here
Gitea Version
1.16.8
Can you reproduce the bug on the Gitea demo site?
Yes
Log Gist
No response
Screenshots
No response
Git Version
Irrelevant
Operating System
Ubuntu 20.04
How are you running Gitea?
The instance runs on a virtual machine without containerization. I don't know which DB is used since I didn't installed it myself. By the way I don't think it's relevant here.
Database
No response
Metadata
Metadata
Assignees
Labels
issue/needs-feedbackFor bugs, we need more details. For features, the feature must be described in more detailFor bugs, we need more details. For features, the feature must be described in more detailoutdated/theme/markdowntype/upstreamThis is an issue in one of Gitea's dependencies and should be reported thereThis is an issue in one of Gitea's dependencies and should be reported there