summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--js/reader.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/js/reader.js b/js/reader.js
index ff7c3e3..64c3404 100644
--- a/js/reader.js
+++ b/js/reader.js
@@ -714,6 +714,10 @@ const Reader = {
$(c.document).find("p")
.filter((i, e) => { if ($(e).text().length >= MIN_LENGTH_TO_JUSTIFY) return e; })
.css("text-align", "justify");
+
+ /* embedded styles may conflict with our font sizes, etc */
+ $(c.document).find("p, span, em, strong, body")
+ .attr("class", "");
});
});