Compare plain list items inside plain lists.

This commit is contained in:
Tom Alexander
2023-04-12 14:07:33 -04:00
parent 57f56eb860
commit 05c9ec86b8
3 changed files with 57 additions and 1 deletions

View File

@@ -1,3 +1,4 @@
use super::PlainListItem;
use super::error::Res;
use super::footnote_definition::footnote_definition;
use super::greater_block::greater_block;
@@ -44,6 +45,12 @@ impl<'s> Source<'s> for PlainList<'s> {
}
}
impl<'s> Source<'s> for PlainListItem<'s> {
fn get_source(&'s self) -> &'s str {
self.source
}
}
impl<'s> Source<'s> for GreaterBlock<'s> {
fn get_source(&'s self) -> &'s str {
self.source

View File

@@ -23,6 +23,7 @@ pub use element::Element;
pub use greater_element::FootnoteDefinition;
pub use greater_element::GreaterBlock;
pub use greater_element::PlainList;
pub use greater_element::PlainListItem;
pub use lesser_element::Paragraph;
pub use source::Source;
type Context<'r, 's> = &'r parser_context::ContextTree<'r, 's>;