mirror of
https://github.com/M66B/FairEmail.git
synced 2026-01-03 19:34:15 +01:00
Smaller font for sub/superscript
This commit is contained in:
@@ -222,6 +222,13 @@ public class HtmlHelper {
|
||||
PatternsCompat.AUTOLINK_EMAIL_ADDRESS.pattern() + "|" +
|
||||
PatternsCompat.AUTOLINK_WEB_URL.pattern());
|
||||
|
||||
// Subscript/Superscript
|
||||
for (Element subp : document.select("sub,sup")) {
|
||||
Element small = document.createElement("small");
|
||||
small.html(subp.html());
|
||||
subp.html(small.outerHtml());
|
||||
}
|
||||
|
||||
// Autolink
|
||||
NodeTraversor.traverse(new NodeVisitor() {
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user