class

ListItem

@Js
class ListItem : Block

A child of a ListBlock, containing other blocks (e.g. Paragraph, other lists, etc.)

Note that a list item can't directly contain Text, it needs to be: ListItem : Paragraph : Text.

If you want a list that is rendered tightly, created a list with ListBlock.tight

constructors make

fields markerIndent

The indent of the marker such as - or 1. in columns (spaces or tab stop of 4) if available, or null otherwise

contentIndent

The indent of the content in columns (spaces or tab stop of 4) if available or null otherwise

contentIndent Int? : contentIndent

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

  • - Foo (content indent: 2)
  • - Foo (content indent: 3)
  • 1. Foo (content indent: 5)

Note 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.

make new make(Int? markerIndent, Int? contentIndent)

markerIndent Int? : markerIndent

The indent of the marker such as - or 1. in columns (spaces or tab stop of 4) if available, or null otherwise.

  • - Foo (marker indent: 0)
  • - Foo (marker indent: 1)
  • 1. Foo (marker indent: 2)

Haxall 4.0.5 ∙ 24-Feb-2026 14:33 EST