-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue comment URLs parsed / emitted incorrectly #17394
Labels
Milestone
Comments
It is a Markdown rendering problem. |
The problem is caused by the wrong HTML generated. For example:
The genrated HTML is
Then SanitizeReader removes the invalid href. |
Fixed in #17404 |
just noted that 1.15.5 is affected too |
Yep, this is a very old bug, we can make a backport then |
wxiaoguang
added a commit
to wxiaoguang/gitea
that referenced
this issue
Oct 23, 2021
* Bug fix: render Markdown http://AppURL/org/repo/issues/4?a=1&b=2#comment-123 test to HTML correctly, close go-gitea#17394 * Bug fix: fix the positions of checkboxes in rendered HTML, close go-gitea#17395
wxiaoguang
added a commit
that referenced
this issue
Oct 23, 2021
wxiaoguang
added a commit
to wxiaoguang/gitea
that referenced
this issue
Oct 23, 2021
* Bug fix: render Markdown `http://AppURL/org/repo/issues/4?a=1&b=2#comment-123 test` to HTML correctly, close go-gitea#17394 * Bug fix: fix the positions of checkboxes in rendered HTML, close go-gitea#17395 # Conflicts: # modules/markup/html.go
lunny
pushed a commit
that referenced
this issue
Oct 23, 2021
Chianina
pushed a commit
to Chianina/gitea
that referenced
this issue
Mar 28, 2022
* Bug fix: render Markdown http://AppURL/org/repo/issues/4?a=1&b=2#comment-123 test to HTML correctly, close go-gitea#17394 * Bug fix: fix the positions of checkboxes in rendered HTML, close go-gitea#17395
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Gitea Version
a115309 (current 1.16), but I observed this since early in the 1.16 dev cycle
Git Version
No response
Operating System
No response
How are you running Gitea?
try.gitea.io
Database
No response
Can you reproduce the bug on the Gitea demo site?
Yes
Log Gist
https://try.gitea.io/noerw/hochwasser/issues/5
Description
Issue comment references don't get parsed correctly, when it isn't the last thing on the line.
Looks like the HTML emitted is wrong, the word following the link is missing. The href is empty.
See try.gitea.io link above.
Screenshots
No response
The text was updated successfully, but these errors were encountered: