Create structure for targets.

This commit is contained in:
Tom Alexander
2023-07-22 01:15:04 -04:00
parent 537fc00fd3
commit d60cad07e0
4 changed files with 41 additions and 0 deletions

View File

@@ -63,6 +63,7 @@ impl<'r, 's> Token<'r, 's> {
Object::InlineBabelCall(_) => Box::new(std::iter::empty()),
Object::InlineSourceBlock(_) => Box::new(std::iter::empty()),
Object::LineBreak(_) => Box::new(std::iter::empty()),
Object::Target(_) => Box::new(std::iter::empty()),
},
Token::Element(elem) => match elem {
Element::Paragraph(inner) => Box::new(inner.children.iter().map(Token::Object)),