Function parse_ordered_list

Source
fn parse_ordered_list(list: &[Token]) -> MdBlockElement
Expand description

Parses a vector of tokens representing an ordered list into an MdBlockElement::OrderedList.

Calls the more generic parse_list function, which parses nested list items

§Arguments

  • list - A vector of tokens representing an ordered list.

§Returns

An MdBlockElement representing the ordered list.