[feat request]: support links shortcut in markdown files #12169

Closed
opened 2025-11-02 10:01:01 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @diamante0018 on GitHub (Dec 8, 2023).

Feature Description

On GitHub, I can fill out an MD file with something along the lines of

[Git](git-link)

# At the bottom of the file for "tidiness"
[git-link]:          https://git-scm.com/

This feature is not supported on Gitea and will not display the right link correctly When clicking the first "Git"

You can see here that Gitea will process this specialized syntax with something like this:
image

Once clicked the link will of course redirect to a non-existent page (.../branch/master/git-link)

I would love to see this feature here, I just recently started my own self-hosted Gitea instance and I love it.

Screenshots

This feature is used heavily on GitHub on a repo like this one which I recommend viewing in case one is interested in learning more about what GitHub supports.

https://github.com/official-stockfish/Stockfish/blob/master/README.md

Originally created by @diamante0018 on GitHub (Dec 8, 2023). ### Feature Description On GitHub, I can fill out an MD file with something along the lines of ```md [Git](git-link) # At the bottom of the file for "tidiness" [git-link]: https://git-scm.com/ ``` This feature is not supported on Gitea and will not display the right link correctly When clicking the first "Git" You can see here that Gitea will process this specialized syntax with something like this: ![image](https://github.com/go-gitea/gitea/assets/37080671/efc3c0dd-b6d4-4d87-807c-e0f329113714) Once clicked the link will of course redirect to a non-existent page (.../branch/master/git-link) I would love to see this feature here, I just recently started my own self-hosted Gitea instance and I love it. ### Screenshots This feature is used heavily on GitHub on a repo like this one which I recommend viewing in case one is interested in learning more about what GitHub supports. https://github.com/official-stockfish/Stockfish/blob/master/README.md
GiteaMirror added the issue/needs-feedback label 2025-11-02 10:01:01 -06:00
Author
Owner

@a1012112796 commented on GitHub (Dec 12, 2023):

looks your format is wrong, example:

[Git](git-link) ❌
[Git][git-link] ✅
------

[git-link]:          https://git-scm.com/


https://try.gitea.io/a1012112796/test_repo2/issues/6#issuecomment-169678

@a1012112796 commented on GitHub (Dec 12, 2023): looks your format is wrong, example: ``` [Git](git-link) ❌ [Git][git-link] ✅ ------ [git-link]: https://git-scm.com/ ``` [Git](git-link) ❌ [Git][git-link] ✅ ------ [git-link]: https://git-scm.com/ --- https://try.gitea.io/a1012112796/test_repo2/issues/6#issuecomment-169678
Author
Owner

@diamante0018 commented on GitHub (Dec 12, 2023):

You are right, I used the incorrect syntax 🤯

All good, I can confirm there is no longer a feature request by me.

@diamante0018 commented on GitHub (Dec 12, 2023): You are right, I used the incorrect syntax 🤯 All good, I can confirm there is no longer a feature request by me.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#12169