Skip to main content

lower_list

Function lower_list 

Source
pub(crate) fn lower_list(
    doc: &mut Document,
    parent: NodeId,
    ordered: bool,
    items: &[ListItem],
    span: &SourceSpan,
)
Expand description

Allocate a [NodeKind::List] under parent and recursively lower its [ListItem]s into [NodeKind::ListItem] children. The ordered flag is preserved as a Bool attribute so layout can pick the right marker style without re-walking the tree.