Have pandoc footnotes at bottom of page or section in HTML?
<p>I've started using inline footnotes in Markdown:</p>

<pre><code>Some text^[an aside here]. More text.
</code></pre>

<p>When I use pandoc to export to HTML they appear at the end of the whole document, but in PDF they appear at the end of the page. I prefer them at the end of the page, and I'm wondering if there is a way to get them that way in HTML?</p>

<p>I realize end-of-page would get complicated with HTML; end of section would work just as well for me. In fact, putting them at end of the section in the PDF, instead of end of the page, might also be useful. (I've tried putting <code>---</code> as a section break, but the footnotes still end up at the end of the document.)</p>

<p>(I've also tried making the pdf, then <code>pdf2html</code>, which kind of works but is really hard on the eyes. Pandoc doesn't seem to support pdf to html, I get "Cannot decode byte '\xd0' ...")</p>

<hr>

<p>(This is not a duplicate of: <a href="https://stackoverflow.com/questions/33984689">Generate inline rather than list-style footnotes in Pandoc Markdown output?</a>  That question is about the way footnotes are handled when moving <em>to</em> markdown format, from another format.)</p>