class
TUI::Markdown::ListItem
- TUI::Markdown::ListItem
- Reference
- Object
Overview
#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]"/"- [ ]").
Defined in:
tui/markdown/block.crConstructors
Instance Method Summary
- #checked : Bool | Nil
- #checked=(checked : Bool | Nil)
- #depth : Int32
- #depth=(depth : Int32)
- #index : Int32 | Nil
- #index=(index : Int32 | Nil)
- #ordered=(ordered : Bool)
- #ordered? : Bool
- #runs : Array(InlineRun)
- #runs=(runs : Array(InlineRun))
Constructor Detail
def self.new(runs : Array(InlineRun), depth : Int32, ordered : Bool, index : Int32 | Nil = nil, checked : Bool | Nil = nil)
#