Compare footnote definition and greater block bounds.

This commit is contained in:
Tom Alexander
2023-04-12 13:45:22 -04:00
parent ba9ef7907f
commit 57f56eb860
3 changed files with 114 additions and 3 deletions

View File

@@ -44,6 +44,18 @@ impl<'s> Source<'s> for PlainList<'s> {
}
}
impl<'s> Source<'s> for GreaterBlock<'s> {
fn get_source(&'s self) -> &'s str {
self.source
}
}
impl<'s> Source<'s> for FootnoteDefinition<'s> {
fn get_source(&'s self) -> &'s str {
self.source
}
}
#[tracing::instrument(ret, level = "debug")]
pub fn element<'r, 's>(context: Context<'r, 's>, input: &'s str) -> Res<&'s str, Element<'s>> {
let non_paragraph_matcher = parser_with_context!(non_paragraph_element)(context);

View File

@@ -20,6 +20,8 @@ pub use document::DocumentElement;
pub use document::Heading;
pub use document::Section;
pub use element::Element;
pub use greater_element::FootnoteDefinition;
pub use greater_element::GreaterBlock;
pub use greater_element::PlainList;
pub use lesser_element::Paragraph;
pub use source::Source;