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.

Clash between footnote numbering of posts on the same page [duplicate]

+0
−0

Closed as duplicate by trichoplax‭ on Aug 26, 2024 at 23:09

This question has been addressed elsewhere. See: Footnotes with the same number in different posts on the same page

This question was closed; new answers can no longer be added. Users with the reopen privilege may vote to reopen this question if it has been improved or closed incorrectly.

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

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


  1. 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. ↩︎

History
Why does this post require attention from curators or moderators?
You might want to add some details to your flag.
Why should this post be closed?

0 comment threads

1 answer

+0
−0

This answer is just an example with a footnote so you can see the problem described in the question.

Click on the footnote link[1] in this answer and you will be taken to the footnote at the bottom of the question instead of the footnote at the bottom of this answer.

Similarly, follow the instructions in the footnote at the bottom of this answer to see how the return link also takes you to the wrong place.


  1. Click on the return link at the end of this sentence to see that you are taken to the footnote link in the question instead of the footnote link in this answer. ↩︎

History
Why does this post require attention from curators or moderators?
You might want to add some details to your flag.

0 comment threads