I'm currently redoing a couple of my virtual machines so I figured I might as well upgrade from calibre 0.5.14 to 0.7.47 while I'm at it. I'm using calibre solely for conversion from zipped html to epub via commandline.
CLI (pretty much the same as I used for 0.5.14 html2epub):
Code:
ebook-convert file.zip file.epub --level1-toc "//*[@class='chaptertitle']|//*[@class='toctitle']|//*[@class='fictitle']" --chapter "//*[@class='chapter']" --chapter-mark "pagebreak"
My issue with the latest version is it inserts a pagebreak before all h1 and h2 tags regardless of whether they're chapters or not. I have one page which contains:
Code:
<h1>title</h1>
<h2>author</h2>
and ebook-convert inserts a pagebreak between title and author. Is there an option to change this behavior? Thanks!