Set up code structure for lesser blocks.

This commit is contained in:
Tom Alexander
2023-04-21 16:31:25 -04:00
parent 142bb09879
commit 0293ca6b12
6 changed files with 37 additions and 0 deletions

View File

@@ -19,6 +19,14 @@ pub struct TableCell<'s> {
pub children: Vec<Object<'s>>,
}
#[derive(Debug)]
pub struct LesserBlock<'s> {
pub source: &'s str,
pub name: &'s str,
pub data: Option<&'s str>,
pub children: Vec<Object<'s>>,
}
impl<'s> Paragraph<'s> {
pub fn of_text(input: &'s str) -> Self {
let mut objects = Vec::with_capacity(1);