Skip to content

Commit

Permalink
Merge pull request #704 from gotson/fix/page-break-epub2
Browse files Browse the repository at this point in the history
fix: draw epub2 page breaks
  • Loading branch information
aferditamuriqi authored Jan 31, 2024
2 parents 0022920 + 6187968 commit 8bb77d1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/modules/pagebreak/PageBreakModule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,9 @@ export class PageBreakModule implements ReaderModule {
if (pageBreaks?.length === 0) {
pageBreaks = body?.querySelectorAll("[epub\\:type='pagebreak']");
}
if (pageBreaks?.length === 0) {
pageBreaks = body?.querySelectorAll("[role='doc-pagebreak']");
}
let self = this;

function getCssSelector(element: Element): string {
Expand Down

0 comments on commit 8bb77d1

Please sign in to comment.