Parse out the plain list type.

This commit is contained in:
Tom Alexander
2023-09-29 12:46:01 -04:00
parent 1b7326eafe
commit a4b1d462c3
3 changed files with 58 additions and 26 deletions

View File

@@ -7,9 +7,17 @@ use super::StandardProperties;
#[derive(Debug)]
pub struct PlainList<'s> {
pub source: &'s str,
pub list_type: PlainListType,
pub children: Vec<PlainListItem<'s>>,
}
#[derive(Debug, Copy, Clone)]
pub enum PlainListType {
Unordered,
Ordered,
Descriptive,
}
/// The width that something is indented. For example, a single tab character could be a value of 4 or 8.
pub type IndentationLevel = u16;

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::PlainListType;
pub use greater_element::PropertyDrawer;
pub use greater_element::Table;
pub use greater_element::TableRow;