Skip to content

Commit

Permalink
Merge pull request #1347 from Kiradien/patch-4
Browse files Browse the repository at this point in the history
#1346 - Update ChaleuriaParser.js to handle multiple formats
  • Loading branch information
dteviot authored Jun 15, 2024
2 parents 97dca7c + cdae7ca commit 0ddf44d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions plugin/js/parsers/ChaleuriaParser.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,19 @@ class ChaleuriaParser extends WordpressBaseParser{
}

findContent(dom) {
return dom.querySelector(".entry-content");
return dom.querySelector(".entry-content, div.elementor-widget-theme-post-content div.elementor-widget-container");
}

extractTitleImpl(dom) {
return dom.querySelector("h1.entry-title");
return dom.querySelector("h1.entry-title, h1.elementor-heading-title");
}

findChapterTitle(dom) {
return dom.querySelector("h1.entry-title");
return dom.querySelector("h1.entry-title, h1.elementor-heading-title");
}

getInformationEpubItemChildNodes(dom) {
return [...dom.querySelectorAll(".entry-content p")];
return [...dom.querySelectorAll(".entry-content p, div.elementor-widget-theme-post-content div.elementor-widget-container p")];
}

cleanInformationNode(node) {
Expand Down

0 comments on commit 0ddf44d

Please sign in to comment.