2023-03-25 13:16:28 -04:00
|
|
|
use super::element::Element;
|
|
|
|
|
2023-03-23 17:26:07 -04:00
|
|
|
#[derive(Debug)]
|
|
|
|
pub struct PlainList<'s> {
|
|
|
|
pub source: &'s str,
|
2023-03-25 13:16:28 -04:00
|
|
|
pub children: Vec<PlainListItem<'s>>,
|
|
|
|
}
|
|
|
|
|
|
|
|
#[derive(Debug)]
|
|
|
|
pub struct PlainListItem<'s> {
|
|
|
|
pub source: &'s str,
|
2023-03-27 12:52:49 -04:00
|
|
|
pub indentation: usize,
|
2023-03-25 13:16:28 -04:00
|
|
|
pub bullet: &'s str,
|
2023-04-03 17:33:01 -04:00
|
|
|
pub children: Vec<Element<'s>>,
|
|
|
|
}
|
|
|
|
|
|
|
|
#[derive(Debug)]
|
|
|
|
pub struct GreaterBlock<'s> {
|
|
|
|
pub source: &'s str,
|
|
|
|
pub name: &'s str,
|
|
|
|
pub parameters: Option<&'s str>,
|
|
|
|
pub children: Vec<Element<'s>>,
|
2023-03-23 17:26:07 -04:00
|
|
|
}
|
2023-04-07 17:14:44 -04:00
|
|
|
|
|
|
|
#[derive(Debug)]
|
|
|
|
pub struct FootnoteDefinition<'s> {
|
|
|
|
pub source: &'s str,
|
|
|
|
pub label: &'s str,
|
|
|
|
pub children: Vec<Element<'s>>,
|
|
|
|
}
|
2023-04-15 17:36:07 -04:00
|
|
|
|
|
|
|
#[derive(Debug)]
|
|
|
|
pub struct Drawer<'s> {
|
|
|
|
pub source: &'s str,
|
2023-04-15 17:56:07 -04:00
|
|
|
pub name: &'s str,
|
2023-04-15 17:36:07 -04:00
|
|
|
pub children: Vec<Element<'s>>,
|
|
|
|
}
|