Epub includes page braeaks we added for PDF - how to stop this?

We added class=“page-break-before” in several places to make the PDF export look good, but these page breaks are causing gaps in the epub export. Is there a way to make the epub export ignore these breaks?

I figured it out. In case anyone else is also looking for this answer:

I added this custom css for the epub.

.page-break-after, .pdf-page-break-after {
  page-break-after: avoid;
}
.page-break-before, .pdf-page-break-before {
  page-break-before: avoid;
}
1 Like