Add support for ol/type attribute

This commit is contained in:
M66B
2022-02-09 09:23:31 +01:00
parent 24f3142144
commit 08fefb8510
2 changed files with 9 additions and 1 deletions

View File

@@ -3092,13 +3092,17 @@ public class HtmlHelper {
int level = 0;
Element list = null;
String ltype = element.attr("x-list-style");
String ltype = element.attr("type");
if (TextUtils.isEmpty(ltype))
ltype = element.attr("x-list-style");
Element parent = element.parent();
while (parent != null) {
if ("ol".equals(parent.tagName()) || "ul".equals(parent.tagName())) {
level++;
if (list == null)
list = parent;
if (TextUtils.isEmpty(ltype))
ltype = parent.attr("type");
if (TextUtils.isEmpty(ltype))
ltype = parent.attr("x-list-style");
}