Initial structures for plain lists.
This commit is contained in:
@@ -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>>,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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
1
src/parser/plain_list.rs
Normal file
@@ -0,0 +1 @@
|
|||||||
|
|
||||||
Reference in New Issue
Block a user