Markdown rendering of links with titles #851

Closed
opened 2025-11-02 03:38:59 -06:00 by GiteaMirror · 12 comments
Owner

Originally created by @IzzySoft on GitHub (Jun 27, 2017).

  • Gitea version (or commit ref): 1.1.2
  • Git version: 2.1.4
  • Operating system: Bananian (Debian Jessie, ARM)
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
    • could not try, server timed out
  • Log gist:

Description

Markdown rendering of links with titles is incomplete and sometimes even fails, which I just noticed in the README.md file of one of my repos (a mirror of Adebar):

  • [Adb](http://en.wikipedia.org/wiki/Android_Debug_Bridge "Wikipedia: Android Debug Bridge"): Title is missing (usually shown on mouse-over):

      <a href="http://en.wikipedia.org/wiki/Android_Debug_Bridge" rel="nofollow">Adb</a>
    
  • [Bash](http://en.wikipedia.org/wiki/Bash_%28Unix_shell%29 "Wikipedia: Bash (Unix shell)"): fails and renders as Bash"):

      It is mainly based on Bash")
    

So the title attribute is at best omitted or, if containing parenthesis, the entire link breaks.

Screenshots

Screenshot
Screenshot (click for larger image)

Originally created by @IzzySoft on GitHub (Jun 27, 2017). - Gitea version (or commit ref): 1.1.2 - Git version: 2.1.4 - Operating system: Bananian (Debian Jessie, ARM) - Database (use `[x]`): - [ ] PostgreSQL - [ ] MySQL - [ ] MSSQL - [x] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [ ] No - [ ] Not relevant - [x] could not try, server timed out - Log gist: ## Description Markdown rendering of links with titles is incomplete and sometimes even fails, which I just noticed in the `README.md` file of one of my repos (a mirror of [Adebar](https://github.com/IzzySoft/Adebar)): * `[Adb](http://en.wikipedia.org/wiki/Android_Debug_Bridge "Wikipedia: Android Debug Bridge")`: Title is missing (usually shown on mouse-over): <a href="http://en.wikipedia.org/wiki/Android_Debug_Bridge" rel="nofollow">Adb</a> * `[Bash](http://en.wikipedia.org/wiki/Bash_%28Unix_shell%29 "Wikipedia: Bash (Unix shell)")`: fails and renders as `Bash")`: It is mainly based on Bash") So the `title` attribute is at best omitted or, if containing parenthesis, the entire link breaks. ## Screenshots [![Screenshot](https://i.imgur.com/XdQYiWsm.png)](https://i.imgur.com/XdQYiWs.png) <sup>Screenshot (click for larger image)</sup>
GiteaMirror added the issue/confirmedtype/testingtype/bug labels 2025-11-02 03:38:59 -06:00
Author
Owner

@bkcsoft commented on GitHub (Jun 28, 2017):

Added kind/testing since we also not testing for this

@bkcsoft commented on GitHub (Jun 28, 2017): Added `kind/testing` since we also not testing for this
Author
Owner

@stale[bot] commented on GitHub (Feb 11, 2019):

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.

@stale[bot] commented on GitHub (Feb 11, 2019): This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.
Author
Owner

@IzzySoft commented on GitHub (Feb 11, 2019):

This one was somehow forgotten it seems. I'll have to check if the problem itself was solved and just this issue forgotten to close (cannot access my Gitea instance from where I currently am).

@IzzySoft commented on GitHub (Feb 11, 2019): This one was somehow forgotten it seems. I'll have to check if the problem itself was solved and just this issue forgotten to close (cannot access my Gitea instance from where I currently am).
Author
Owner

@IzzySoft commented on GitHub (Feb 11, 2019):

Issue still exists with Gitea 1.7. Any chance to see it fixed before its 2nd birthday? 😃

@IzzySoft commented on GitHub (Feb 11, 2019): Issue still exists with Gitea 1.7. Any chance to see it fixed before its 2nd birthday? :smiley:
Author
Owner

@lafriks commented on GitHub (Feb 11, 2019):

Nobody is working on this so any help would be greatly appreciated

@lafriks commented on GitHub (Feb 11, 2019): Nobody is working on this so any help would be greatly appreciated
Author
Owner

@techknowlogick commented on GitHub (Feb 11, 2019):

I think this issue may be caused by the upstream markdown library and would need to be fixed there.

@techknowlogick commented on GitHub (Feb 11, 2019): I think this issue may be caused by the upstream markdown library and would need to be fixed there.
Author
Owner

@IzzySoft commented on GitHub (Feb 11, 2019):

I'd help out if I could – but I'm completely lost with Go, sorry…

@IzzySoft commented on GitHub (Feb 11, 2019): I'd help out if I could – but I'm completely lost with Go, sorry…
Author
Owner

@stale[bot] commented on GitHub (Apr 12, 2019):

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.

@stale[bot] commented on GitHub (Apr 12, 2019): This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.
Author
Owner

@IzzySoft commented on GitHub (Apr 13, 2019):

Thanks, @lunny – I just checked, the issue still exists with v1.7.5 (the latest release with binaries attached).

@IzzySoft commented on GitHub (Apr 13, 2019): Thanks, @lunny – I just checked, the issue still exists with v1.7.5 (the latest release with binaries attached).
Author
Owner

@6543 commented on GitHub (Sep 6, 2020):

@IzzySoft can you check again?

the markdown rendering lib has changed

@6543 commented on GitHub (Sep 6, 2020): @IzzySoft can you check again? the markdown rendering lib has changed
Author
Owner

@zeripath commented on GitHub (Sep 6, 2020):

This is also fixed.

See https://try.gitea.io/arandomer/Adebar

@zeripath commented on GitHub (Sep 6, 2020): This is also fixed. See https://try.gitea.io/arandomer/Adebar
Author
Owner

@IzzySoft commented on GitHub (Sep 6, 2020):

I can confirm what @zeripath mentioned on try.gitea for the original place at Codeberg: https://codeberg.org/izzy/Adebar/ – so thanks, this indeed seems to be fixed!

@IzzySoft commented on GitHub (Sep 6, 2020): I can confirm what @zeripath mentioned on try.gitea for the original place at Codeberg: https://codeberg.org/izzy/Adebar/ – so thanks, this indeed seems to be fixed!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#851