-
Some epub readers (e.g. SumatraPDF) don't seem to know how to jump to section headings correctly (they jump to the first page of the parent chapter, rather than the section heading itself). I noticed that if I manually modify the epub file to use div tags instead of section tags, then SumatraPDF can jump correctly to the section heading. In other words, I want to change each section (other than the h1 chapter headings) from:
to:
As far as I know, this can't be done using Pandoc filters because in Pandoc's native format, section headings appear on their own (like in traditional HTML output) rather than as parents containing all their content, so I can't access the "section tag" of the epub output. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Try using |
Beta Was this translation helpful? Give feedback.
Try using
-t epub2
; that should use divs if I'm not mistaken.