Implement the parser for inline babel calls.

This commit is contained in:
Tom Alexander
2023-07-21 21:38:32 -04:00
parent 2773b35438
commit 45b01012b3
4 changed files with 186 additions and 7 deletions

View File

@@ -60,7 +60,7 @@ impl<'r, 's> Token<'r, 's> {
}
Object::Citation(_) => Box::new(std::iter::empty()), // TODO: Iterate over children
Object::CitationReference(_) => Box::new(std::iter::empty()), // TODO: Iterate over children
Object::InlineBabelCall(_) => Box::new(std::iter::empty()), // TODO: Iterate over children
Object::InlineBabelCall(_) => Box::new(std::iter::empty()),
},
Token::Element(elem) => match elem {
Element::Paragraph(inner) => Box::new(inner.children.iter().map(Token::Object)),