Footnotes should render ignoring first indentation #11082

Open
opened 2025-11-02 09:27:06 -06:00 by GiteaMirror · 0 comments
Owner

Originally created by @wolftune on GitHub (Jun 22, 2023).

Description

To have a multi-part footnote, indenting under the footnote mark should work as in:

Normal text[^footnote]

[^footnote]: blah blah

    1. Point one
    2. Point two
    

This renders with second-level numbering (roman numerals) instead of top level because even though it successfully treats the list as part of the footnote, the rendering counts the indentation. Instead, the first indentation to make this part of the footnote should be only used for that, and that initial indentation should not be used in the Markdown style rendering.

Gitea Version

v1.19.3

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

No response

How are you running Gitea?

at https://try.gitea.io

Database

None

Originally created by @wolftune on GitHub (Jun 22, 2023). ### Description To have a multi-part footnote, indenting under the footnote mark should work as in: ```` Normal text[^footnote] [^footnote]: blah blah 1. Point one 2. Point two ````` This renders with second-level numbering (roman numerals) instead of top level because even though it *successfully* treats the list as part of the footnote, the rendering *counts* the indentation. Instead, the first indentation to make this part of the footnote should be only used for that, and that initial indentation should not be used in the Markdown style rendering. ### Gitea Version v1.19.3 ### Can you reproduce the bug on the Gitea demo site? Yes ### Log Gist _No response_ ### Screenshots _No response_ ### Git Version _No response_ ### Operating System _No response_ ### How are you running Gitea? at https://try.gitea.io ### Database None
GiteaMirror added the type/bug label 2025-11-02 09:27:06 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#11082