Make sure marked text is visible

This commit is contained in:
M66B
2022-04-04 14:42:58 +02:00
parent ea019c5f21
commit 53262f88cd
3 changed files with 14 additions and 0 deletions

View File

@@ -2811,6 +2811,15 @@ public class HtmlHelper {
return document;
}
static Document markText(Document document) {
for (Element mark : document.select("mark")) {
String style = mark.attr("style");
mark.attr("style", mergeStyles(style, "font-style: italic;"));
}
return document;
}
static void cleanup(Document d) {
// https://www.chromestatus.com/feature/5756335865987072
// Some messages contain 100 thousands of Apple spaces