Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

Welcome to Codidact Meta!

Codidact Meta is the meta-discussion site for the Codidact community network and the Codidact software. Whether you have bug reports or feature requests, support questions or rule discussions that touch the whole network – this is the site for you.

Post History

50%
+0 −0
Q&A Clash between footnote numbering of posts on the same page [duplicate]

If a post uses a Markdown footnote, and then another post on the same page also uses a footnote (such as a question and one of its answers, or 2 answers to the same question), the footnote link goe...

1 answer  ·  posted 2mo ago by trichoplax‭  ·  closed as duplicate 2mo ago by trichoplax‭

Question bug footnote
#2: Question closed by user avatar trichoplax‭ · 2024-08-26T23:09:02Z (about 2 months ago)
#1: Initial revision by user avatar trichoplax‭ · 2024-08-26T22:32:23Z (about 2 months ago)
Clash between footnote numbering of posts on the same page
If a post uses a Markdown footnote, and then another post on the same page also uses a footnote (such as a question and one of its answers, or 2 answers to the same question), the footnote link goes to the first footnote of that number on the page, rather than the the footnote of that number in the same post.

For example, if a question includes a footnote using `[^1]` and so does one of its answers, clicking the footnote link in the answer will take you to the footnote at the bottom of the question instead of the footnote at the bottom of the answer.

Similarly, clicking on the return link at the end of the footnote at the bottom of the answer will take you to the footnote link in the question rather than the footnote link in the answer.

One attempt to work around this problem might be to use different numbers for the footnotes in different posts. However, these are automatically renumbered when the Markdown is rendered, so even if you call the first footnote in a post `[^2]` it will be rendered as [^2].

I'll add an answer with a footnote so this can easily be seen on this page.

[^2]: In the raw Markdown this footnote is called `[^2]` (edit or suggest edit to see the raw Markdown, then cancel without editing), but it is rendered as a 1.