Skip to content

Footnote References Not Properly Scoped to Individual Comments #34511

Closed
@LangLangBart

Description

@LangLangBart

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

Activity

added this to the 1.24.0 milestone on Jun 9, 2025
added a commit that references this issue on Jun 9, 2025
c6b2cbd
added a commit that references this issue on Jun 9, 2025
27fa68c
added a commit that references this issue on Jun 9, 2025
b947bc4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

      Development

      Participants

      @lunny@LangLangBart

      Issue actions

        Footnote References Not Properly Scoped to Individual Comments · Issue #34511 · go-gitea/gitea