[Bug] markdown link formater cant pars issue-url including comment-link #6453

Closed
opened 2025-11-02 06:56:29 -06:00 by GiteaMirror · 5 comments
Owner

Originally created by @6543 on GitHub (Dec 4, 2020).

Copy from https://codeberg.org/Codeberg/Community/issues/212

I just commented including this code:

and https://codeberg.org/Codeberg/Community/issues/140#issuecomment-49756 is now
-> and #140 now

so both the issue is not linked and the word after the URL is removed.

Inserting a second space after the url like so works:
and https://codeberg.org/Codeberg/Community/issues/140#issuecomment-49756 is now
-> and [#140](https://codeberg.org/Codeberg/Community/issues/140#issuecomment-49756) now


Originally created by @6543 on GitHub (Dec 4, 2020). Copy from https://codeberg.org/Codeberg/Community/issues/212 --- I just commented including this code: `and https://codeberg.org/Codeberg/Community/issues/140#issuecomment-49756 is now` -> `and #140 now` so both the issue is not linked and the word after the URL is removed. Inserting a second space after the url like so works: `and https://codeberg.org/Codeberg/Community/issues/140#issuecomment-49756 is now` -> `and [#140](https://codeberg.org/Codeberg/Community/issues/140#issuecomment-49756) now` --- - Gitea version (or commit ref): 1.12.6 - master (1.14.0+dev-311-g3512c7e40) - Can you reproduce the bug at https://try.gitea.io: - https://try.gitea.io/abcKing/noReaction/issues/1#issuecomment-70736
GiteaMirror added the type/bug label 2025-11-02 06:56:29 -06:00
Author
Owner

@noerw commented on GitHub (Sep 25, 2021):

In 1.16.0+dev-248-g45ebcb0d1 a new regression exists (not present in 1.15 as far as i can tell):

For a URL like https://gitea.com/gitea/tea/pulls/410#issue-97552 a reference is correctly detected, but the URL is empty

image

@noerw commented on GitHub (Sep 25, 2021): In 1.16.0+dev-248-g45ebcb0d1 a new regression exists (not present in 1.15 as far as i can tell): For a URL like `https://gitea.com/gitea/tea/pulls/410#issue-97552` a reference is correctly detected, but the URL is empty ![image](https://user-images.githubusercontent.com/7880552/134768660-ca428f2f-1c53-41a0-b546-b406bf3ea0d6.png)
Author
Owner

@fnetX commented on GitHub (Nov 20, 2021):

The original issue seems to be fixed in 1.15, does the regression still exist?

@fnetX commented on GitHub (Nov 20, 2021): The original issue seems to be fixed in 1.15, does the regression still exist?
Author
Owner

@lunny commented on GitHub (Nov 22, 2021):

@fnetX I think no. It's reported in v1.14. Let's close and feel free to reopen it if it's not resolved.

@lunny commented on GitHub (Nov 22, 2021): @fnetX I think no. It's reported in v1.14. Let's close and feel free to reopen it if it's not resolved.
Author
Owner

@wxiaoguang commented on GitHub (Nov 22, 2021):

I remember that I fixed a markdown bug:

Are they related?

@wxiaoguang commented on GitHub (Nov 22, 2021): I remember that I fixed a markdown bug: * https://github.com/go-gitea/gitea/pull/17411 Are they related?
Author
Owner

@fnetX commented on GitHub (Nov 22, 2021):

Yeah, #17394 is a dupe.

@fnetX commented on GitHub (Nov 22, 2021): Yeah, #17394 is a dupe.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#6453