Initial structures for plain lists.

This commit is contained in:
Tom Alexander 2023-03-25 13:16:28 -04:00
parent 74fc440cbd
commit ab09edb5de
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE
3 changed files with 12 additions and 0 deletions

View File

@ -1,4 +1,14 @@
use super::element::Element;
#[derive(Debug)] #[derive(Debug)]
pub struct PlainList<'s> { pub struct PlainList<'s> {
pub source: &'s str, pub source: &'s str,
pub children: Vec<PlainListItem<'s>>,
}
#[derive(Debug)]
pub struct PlainListItem<'s> {
pub source: &'s str,
pub bullet: &'s str,
pub contents: Vec<Element<'s>>,
} }

View File

@ -9,6 +9,7 @@ mod object;
mod paragraph; mod paragraph;
mod parser_context; mod parser_context;
mod parser_with_context; mod parser_with_context;
mod plain_list;
mod plain_text; mod plain_text;
mod source; mod source;
mod util; mod util;

1
src/parser/plain_list.rs Normal file
View File

@ -0,0 +1 @@