Originally Posted by therealjoeblow
Yep, I had an anchor, then the <div class="pagebreak"> then another anchor, then my chapter heading (h2). I moved the pagebreak to before the first anchor (so now I have div, a, a, h2) and it works fine, only this is a manual pain in the butt....
You don't need anything other than the chapter heading tags (<h2> in your case) in your html file. Calibre will insert the chapter pagebreaks when you convert the html to epub, depending on your settings on the Convert - StructureDetection page.