class Crst::ListItem

Overview

List item within a bullet or enumerated list

Can contain paragraphs, nested lists, or other block content. The children represent the content of this list item.

Example:

item = Crst::ListItem.new
item.children << Crst::Paragraph.new("Item content")

Defined in:

crst/nodes.cr

Instance Method Summary

Instance Method Detail

def children : Array(Crst::Node) #

Child nodes within this list item


[View source]
def children=(children : Array(Crst::Node)) #

Child nodes within this list item


[View source]