Compare plain list item counter.

This commit is contained in:
Tom Alexander
2023-09-29 18:45:38 -04:00
parent 967e74c147
commit 7727b5ef47
4 changed files with 57 additions and 8 deletions

View File

@@ -26,11 +26,14 @@ pub struct PlainListItem<'s> {
pub source: &'s str,
pub indentation: IndentationLevel,
pub bullet: &'s str,
pub counter: Option<PlainListItemCounter>,
pub checkbox: Option<(CheckboxType, &'s str)>,
pub tag: Vec<Object<'s>>,
pub children: Vec<Element<'s>>,
}
pub type PlainListItemCounter = u16;
#[derive(Debug)]
pub enum CheckboxType {
On,

View File

@@ -24,6 +24,7 @@ pub use greater_element::IndentationLevel;
pub use greater_element::NodeProperty;
pub use greater_element::PlainList;
pub use greater_element::PlainListItem;
pub use greater_element::PlainListItemCounter;
pub use greater_element::PlainListType;
pub use greater_element::PropertyDrawer;
pub use greater_element::Table;