Parse plain list item checkboxes.

This commit is contained in:
Tom Alexander
2023-09-15 15:30:13 -04:00
parent fd41ad9c29
commit bfe67b1f75
4 changed files with 49 additions and 2 deletions

View File

@@ -15,10 +15,18 @@ pub struct PlainListItem<'s> {
pub source: &'s str,
pub indentation: usize,
pub bullet: &'s str,
pub checkbox: Option<(CheckboxType, &'s str)>,
pub tag: Vec<Object<'s>>,
pub children: Vec<Element<'s>>,
}
#[derive(Debug)]
pub enum CheckboxType {
On,
Trans,
Off,
}
#[derive(Debug)]
pub struct GreaterBlock<'s> {
pub source: &'s str,

View File

@@ -11,6 +11,7 @@ pub use document::PriorityCookie;
pub use document::Section;
pub use document::TodoKeywordType;
pub use element::Element;
pub use greater_element::CheckboxType;
pub use greater_element::Drawer;
pub use greater_element::DynamicBlock;
pub use greater_element::FootnoteDefinition;