Create structure for inline source blocks.

This commit is contained in:
Tom Alexander
2023-07-21 22:29:04 -04:00
parent b323a407c4
commit e0d2bb8213
6 changed files with 69 additions and 2 deletions

View File

@@ -61,6 +61,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()),
Object::InlineSourceBlock(_) => Box::new(std::iter::empty()),
},
Token::Element(elem) => match elem {
Element::Paragraph(inner) => Box::new(inner.children.iter().map(Token::Object)),