Standardize on the children name instead of contents.

This commit is contained in:
Tom Alexander 2023-04-03 17:33:01 -04:00
parent 11f127b545
commit 9ad428bb20
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE
2 changed files with 11 additions and 3 deletions

View File

@ -11,5 +11,13 @@ pub struct PlainListItem<'s> {
pub source: &'s str,
pub indentation: usize,
pub bullet: &'s str,
pub contents: Vec<Element<'s>>,
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>>,
}

View File

@ -71,7 +71,7 @@ pub fn plain_list_item<'r, 's>(
source,
indentation: indent_level,
bullet: bull,
contents: Vec::new(),
children: Vec::new(),
},
));
}
@ -86,7 +86,7 @@ pub fn plain_list_item<'r, 's>(
source,
indentation: indent_level,
bullet: bull,
contents,
children: contents,
},
));
}