-
-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Open
Labels
Description
Gitea Version
1.15.7
Operating System
Debian
Browser Version
Firefox 93.0
Can you reproduce the bug on the Gitea demo site?
Yes
Description
In issues and comments underscores in URLs are interpreted as formatting characters.
For example https://try.gitea.io/dingensundso/python_test/src/commit/64961edfda9192fb42158c4854cefae473d8f84b/__init__.py#L2 will look like the attached screenshot when posted and the link is not what it was supposed to be (https://try.gitea.io/dingensundso/python_test/issues/1)
To mitigate this you have to escape the underscores.
What makes this worse is that this the "Reference in new issue" link (when viewing a file) generates an issue with the link like above.
In my opinion the parser should not try to format things in URLs.
Screenshots
thatsatoffee, MathJoDE, milahu, silverwind and didim99