class TUI::Markdown::ListItem

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

Constructors

Instance Method Summary

Constructor Detail

def self.new(runs : Array(InlineRun), depth : Int32, ordered : Bool, index : Int32 | Nil = nil, checked : Bool | Nil = nil) #

[View source]

Instance Method Detail

def checked : Bool | Nil #

[View source]
def checked=(checked : Bool | Nil) #

[View source]
def depth : Int32 #

[View source]
def depth=(depth : Int32) #

[View source]
def index : Int32 | Nil #

[View source]
def index=(index : Int32 | Nil) #

[View source]
def ordered=(ordered : Bool) #

[View source]
def ordered? : Bool #

[View source]
def runs : Array(InlineRun) #

[View source]
def runs=(runs : Array(InlineRun)) #

[View source]