Smaller font for sub/superscript

This commit is contained in:
M66B 2019-06-23 17:56:22 +02:00
parent fd48898cba
commit 7b2e8f5879
1 changed files with 7 additions and 0 deletions

View File

@ -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