title_body: Endnote formatting when using epub and kindlegen I try to use ePub formatting as below. This is based on the output of the pandoc tool.
  
  &lt;div id="chapter-two" class="section level1"&gt;
  &lt;h1&gt;Chapter Two&lt;/h1&gt;
  &lt;p&gt;Chapter two has just begun.&lt;/p&gt;
  &lt;p&gt;Here is a footnote reference,&lt;a href="#fn1" class="footnoteRef" id="fnref1"&gt;1&lt;/a&gt; and another.&lt;a href="#fn2" class="footnoteRef" id="fnref2"&gt;2&lt;/a&gt;&lt;/p&gt;
  &lt;p&gt;This paragraph won't be part of the note, because it isn't indented.&lt;/p&gt;
  &lt;/div&gt;
  &lt;div class="footnotes"&gt;
  &lt;hr /&gt;
  &lt;ol&gt;
  &lt;li id="fn1"&gt;&lt;p&gt;Here is the footnote.&lt;a href="#fnref1"&gt;↩&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
  &lt;li id="fn2"&gt;&lt;p&gt;Here's one with multiple blocks.&lt;/p&gt;
  &lt;p&gt;Subsequent paragraphs are indented to show that they belong to the previous footnote.&lt;/p&gt;
  &lt;pre&gt;&lt;code&gt;{ some.code }&lt;/code&gt;&lt;/pre&gt;
  &lt;p&gt;The whole paragraph can be indented, or just the first line. In this way, multi-paragraph footnotes work like multi-paragraph list items.&lt;a href="#fnref2"&gt;↩&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
  &lt;/ol&gt;
  
  
  When I use kindlegen to produce a .mobi file, and view it on my Paperwhite, the endnote pops up, which is good. But the contents of the second endnote is also displayed, after the content of the first. It seems that the device does not realize that the first endnote has finished.
  
  What's the correct markup for endnotes that does not string together consecutive endnotes in this way?
upvoted_answer: When I put pagebreak elements between the footnotes, the two-footnotes-in-one problem on my paperwhite goes away.
  
  The footnote section of my ch001.xhtml file (generated by Kindlegen) looks like this:
  
  &lt;section class="footnotes"&gt;
  &lt;hr /&gt;
  &lt;ol&gt;
  &lt;li id="fn1" epub:type="footnote"&gt;&lt;p&gt;Here is the text of a footnote&lt;a href="#fnref1"&gt;↩&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
  &lt;p style="page-break-before: always"&gt;&lt;/p&gt;
  &lt;li id="fn2" epub:type="footnote"&gt;&lt;p&gt;Here is text of another footnote&lt;a href="#fnref2"&gt;↩&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
  &lt;p style="page-break-before: always"&gt;&lt;/p&gt;
  
  and so on...