Package org.commonmark.node
Class ListItem
java.lang.Object
org.commonmark.node.Node
org.commonmark.node.Block
org.commonmark.node.ListItem
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Returns the indent of the content in columns (spaces or tab stop of 4) if available, or null otherwise.Returns the indent of the marker such as "-" or "1." in columns (spaces or tab stop of 4) if available, or null otherwise.void
setContentIndent
(Integer contentIndent) void
setMarkerIndent
(Integer markerIndent) Methods inherited from class org.commonmark.node.Node
addSourceSpan, appendChild, getFirstChild, getLastChild, getNext, getPrevious, getSourceSpans, insertAfter, insertBefore, prependChild, setSourceSpans, toString, toStringAttributes, unlink
-
Field Details
-
markerIndent
-
contentIndent
-
-
Constructor Details
-
ListItem
public ListItem()
-
-
Method Details
-
accept
-
getMarkerIndent
Returns the indent of the marker such as "-" or "1." in columns (spaces or tab stop of 4) if available, or null otherwise.Some examples and their marker indent:
- Foo
Marker indent: 0- Foo
Marker indent: 11. Foo
Marker indent: 2 -
setMarkerIndent
-
getContentIndent
Returns the indent of the content in columns (spaces or tab stop of 4) if available, or null otherwise. The content indent is counted from the beginning of the line and includes the marker on the first line.Some examples and their content indent:
- Foo
Content indent: 2- Foo
Content indent: 31. Foo
Content indent: 5Note that subsequent lines in the same list item need to be indented by at least the content indent to be counted as part of the list item.
-
setContentIndent
-