The problem is that ${ADOC_TOTAL} includes the PDF workarounds -- the resulting EPUB file doesn't know what to do with them. The end result is broken-image tags show up on your Kindle.
The solution is to have two different ${ADOC_TOTAL}s, one destined for PDF that can safely include other PDFs (like we currently do) and a separate one which is destined for EPUB.
This means the frontmatter needs to be handled differently than everything else, since the AsciiDoc markup which surrounds the frontmatter is now different depending on whether we're gonna be transformed into a PDF or EPUB3 (or whatever else down the line).
9405ee50ef1b1e9684e5e017e7ccb11fbb223af6 has the ADOC_TOTALs separated -- now I need to have the different templates for the individual frontmatter bits
The problem is that
${ADOC_TOTAL}
includes the PDF workarounds -- the resulting EPUB file doesn't know what to do with them. The end result is broken-image tags show up on your Kindle.The solution is to have two different
${ADOC_TOTAL}
s, one destined for PDF that can safely include other PDFs (like we currently do) and a separate one which is destined for EPUB.This means the frontmatter needs to be handled differently than everything else, since the AsciiDoc markup which surrounds the frontmatter is now different depending on whether we're gonna be transformed into a PDF or EPUB3 (or whatever else down the line).