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]
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.
-
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. ↩︎
1 answer
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.
-
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. ↩︎
0 comment threads