//! Unordered (bulleted) and ordered (numbered) lists. use super::prelude::*; use super::{GridNode, Numbering, ParNode, TextNode, TrackSizing}; use crate::parse::Scanner; /// An unordered or ordered list. #[derive(Debug, Hash)] pub struct ListNode { /// Where the list starts. pub start: usize, /// If true, there is paragraph spacing between the items, if false /// there is list spacing between the items. pub wide: bool, /// The individual bulleted or numbered items. pub items: Vec, } /// An item in a list. #[derive(Debug, Clone, PartialEq, Hash)] pub struct ListItem { /// The number of the item. pub number: Option, /// The node that produces the item's body. pub body: Box