Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Conversion

Notices

Reply
 
Thread Tools Search this Thread
Old 02-28-2018, 07:16 AM   #1
Bobík
Junior Member
Bobík began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Feb 2018
Device: iBooks
GitBook generates epub with duplicate headings

I have ebook in markdown files and use GitBook for generating epub file. Like usual, chapters are defined in SUMMARY.md and chapter files begins with a headings (the same like in summary):

Code:
Title of the chapter
====================
GitBook uses Calibre's tool ebook-convert to generate epub files what will have html files with title section like:

Code:
  <body class="calibre">

<div class="page">

        <h1 class="book-chapter2" id="calibre_toc_2">Title of the chapter</h1>
        <div class="section">
            <h1 id="příběh-první" class="calibre17">Title of the chapter</h1>
First h1 have display: none; in CSS, so will not be visible in most readers, but some of them ignores it and renders heading twice.

Is there a way hot to configure GitBook or epub-convert to not add second heading and keep table of contents working?
Bobík is offline   Reply With Quote
Old 02-28-2018, 07:22 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
calibre does not duplicate headings, you will need to ask the developers of gitbook.
kovidgoyal is offline   Reply With Quote
Advert
Old 03-02-2018, 10:02 AM   #3
deback
Book E d i t o r
deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.
 
Posts: 432
Karma: 288184
Join Date: May 2015
Device: Laptop
I don't use Gitbook, but I would just remove all the first lines for each of the chapter titles. You only need to list it once per chapter.
deback is offline   Reply With Quote
Reply

Tags
ebook-convert, epub, gitbook


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Epub conversion adds page break after chapter headings Siavahda Calibre 9 06-30-2015 12:10 AM
ePub to AZW3 generates lines with warnings phossler Conversion 2 10-25-2014 12:39 PM
Epub to Mobi issue...chapter headings. heeby Calibre 3 04-10-2012 12:21 AM
Epub to Epub: issue with Multiple headings and page breaks erion Conversion 5 12-04-2011 06:06 AM
instapaper.com - Bookmarks service that generates ebooks in epub and Kindle (mobi) celson Amazon Kindle 1 03-14-2010 11:53 PM


All times are GMT -4. The time now is 10:29 AM.


MobileRead.com is a privately owned, operated and funded community.