You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// About the model, see https://asciidoctor.zulipchat.com/#narrow/stream/279642-users/topic/.E2.9C.94.20Description.20List.20AST.20structure/near/419353063
Copy file name to clipboardexpand all lines: asciidoctor-parser-doxia-module/src/main/java/org/asciidoctor/maven/site/ast/processors/ListItemNodeProcessor.java
+32-11
Original file line number
Diff line number
Diff line change
@@ -45,12 +45,19 @@ public boolean applies(StructuralNode node) {
45
45
publicvoidprocess(StructuralNodenode) {
46
46
finalListItemitem = (ListItem) node;
47
47
finalSinksink = getSink();
48
-
if (isUnorderedListItem(item))
49
-
sink.listItem();
50
-
else
51
-
sink.numberedListItem();
48
+
finalListTypelistType = getListType(item);
52
49
53
-
Stringtext = item.getText();
50
+
// description type does not require any action
51
+
switch (listType) {
52
+
caseordered:
53
+
sink.numberedListItem();
54
+
break;
55
+
caseunordered:
56
+
sink.listItem();
57
+
break;
58
+
}
59
+
60
+
finalStringtext = item.getText();
54
61
sink.rawText(text == null ? "" : text);
55
62
56
63
for (StructuralNodesubNode : node.getBlocks()) {
@@ -61,14 +68,28 @@ public void process(StructuralNode node) {
0 commit comments