Create structure for timestamps.

This commit is contained in:
Tom Alexander
2023-07-24 17:34:07 -04:00
parent 73e15286dc
commit fa5fc41121
6 changed files with 59 additions and 2 deletions

View File

@@ -67,6 +67,7 @@ impl<'r, 's> Token<'r, 's> {
Object::StatisticsCookie(_) => Box::new(std::iter::empty()),
Object::Subscript(_) => Box::new(std::iter::empty()), // TODO: Iterate over children
Object::Superscript(_) => Box::new(std::iter::empty()), // TODO: Iterate over children
Object::Timestamp(_) => Box::new(std::iter::empty()),
},
Token::Element(elem) => match elem {
Element::Paragraph(inner) => Box::new(inner.children.iter().map(Token::Object)),