class

TUI::Markdown::ListItem

Inherits Reference < Object

index is the rendered ordinal for an ordered item (renumbered per rendered list, not the source's own numbers — see Parser); nil for an unordered item. checked is nil for a plain list item, true/false for a GFM task-list item ("- [x]"/"- [ ]").

Constructors

new(runs : Array(InlineRun), depth : Int32, ordered : Bool, index : Int32 | Nil = nil, checked : Bool | Nil = nil)
Source

Instance methods

checked
Source
checked=(checked : Bool | Nil)
Source
depth
Source
depth=(depth : Int32)
Source
index
Source
index=(index : Int32 | Nil)
Source
ordered=(ordered : Bool)
Source
ordered?
Source
runs
Source
runs=(runs : Array(InlineRun))
Source