Skip to content

Footnote References Not Properly Scoped to Individual Comments #34511

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

Open
LangLangBart opened this issue May 20, 2025 · 0 comments
Open

Footnote References Not Properly Scoped to Individual Comments #34511

LangLangBart opened this issue May 20, 2025 · 0 comments
Labels

Comments

@LangLangBart
Copy link

LangLangBart commented May 20, 2025

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:

  1. Open a bug report with some footnotes
foo[^1][^2]

[^1]: bar
[^2]: baz
  1. Create a comment on this bug report with a footnote
qux[^1]

[^1]: thud
  1. 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

Image

Git Version

No response

Operating System

No response

How are you running Gitea?

https://demo.gitea.com/

Database

None

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant