Closed
Description
description
When using footnotes in bug reports, they are not scoped to the comment. The
^1
marker always links to the first occurrence of ^1
in the issue.
to reproduce:
- Open a bug report with some footnotes
foo[^1][^2]
[^1]: bar
[^2]: baz
- Create a comment on this bug report with a footnote
qux[^1]
[^1]: thud
- Compare the link on the first footnote in the issue description with the link
from the footnote from the comment. They are the same.
expected:
Footnotes should have some context/scope like GitHub does it
- GitHub's format:
#user-content-fn-1-39ad31d95bf1bd16a061fdbe4a
- Gitea's current format:
#fn:user-content-1
additional notes
Additionally, GitHub's styling is superior. In Gitea, footnotes appear small
and cramped when multiple footnotes reference the same word. The actual listing
of footnotes doesn't feel visually distinct enough compared to what users could
accomplish with typical markdown numbered lists and a ---
separator.
A smaller font size and a slight grey tone would help.
Gitea Version
1.25.0+dev-61-g9cfcc079c7
Can you reproduce the bug on the Gitea demo site?
Yes
Log Gist
No response
Screenshots
Git Version
No response
Operating System
No response
How are you running Gitea?
https://demo.gitea.com/
Database
None
Activity
Fix footnote jump behavior on the issue page. (#34621)
Fix footnote jump behavior on the issue page. (go-gitea#34621)
Fix footnote jump behavior on the issue page. (#34621) (#34669)