You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<section class="footnotes" role="doc-endnotes"> has no id="footnotes" on it, so it can't be linked. (All other sections would get an ID, as one expects, and can be linked.)
I can't seem to find any documentation explaining if this is deliberate in the source or Github issues, and when I search for ID in the Pandoc source, I get a lot of hits for both HTML and most of the other output formats suggesting that having an ID is the usual behavior and used to be the Pandoc behavior. (I feel like I vaguely remember many years ago Pandoc/Gitit footnotes being full sections just like any other, with <h1> and IDs and all; but I could be wrong.) For example,
All of the tests seem to think that footnote sections get IDs? (Although they also look outdated so perhaps they are historical.)
This causes me trouble inasmuch as I want my ToCs to link to the footnotes section properly, and I use JS to inject the ID manually, but this has the side-effect that linkcheckers & validators will complain because the ID doesn't exist (as indeed it does not exist statically, only at runtime in the reader browser). I could just workaround the lack with a sed <section class="footnotes" role="doc-endnotes"> to <section class="footnotes" role="doc-endnotes" id="footnotes">, of course, but perhaps this is just a minor Pandoc bug?
I think it would also be good to generate headers & ToC entries for the footnotes section, but that's probably a separate discussion.
The text was updated successfully, but these errors were encountered:
Compiling
to stand-alone HTML yields
<section class="footnotes" role="doc-endnotes">
has noid="footnotes"
on it, so it can't be linked. (All other sections would get an ID, as one expects, and can be linked.)I can't seem to find any documentation explaining if this is deliberate in the source or Github issues, and when I search for ID in the Pandoc source, I get a lot of hits for both HTML and most of the other output formats suggesting that having an ID is the usual behavior and used to be the Pandoc behavior. (I feel like I vaguely remember many years ago Pandoc/Gitit footnotes being full sections just like any other, with
<h1>
and IDs and all; but I could be wrong.) For example,All of the tests seem to think that footnote sections get IDs? (Although they also look outdated so perhaps they are historical.)
This causes me trouble inasmuch as I want my ToCs to link to the footnotes section properly, and I use JS to inject the ID manually, but this has the side-effect that linkcheckers & validators will complain because the ID doesn't exist (as indeed it does not exist statically, only at runtime in the reader browser). I could just workaround the lack with a sed
<section class="footnotes" role="doc-endnotes">
to<section class="footnotes" role="doc-endnotes" id="footnotes">
, of course, but perhaps this is just a minor Pandoc bug?I think it would also be good to generate headers & ToC entries for the footnotes section, but that's probably a separate discussion.
The text was updated successfully, but these errors were encountered: