Finish implementing token iteration.
This commit is contained in:
parent
08e6efe5f5
commit
b27f911ff3
@ -37,19 +37,19 @@ impl<'r, 's> Token<'r, 's> {
|
|||||||
)),
|
)),
|
||||||
Token::Section(section) => Box::new(section.children.iter().map(Token::Element)),
|
Token::Section(section) => Box::new(section.children.iter().map(Token::Element)),
|
||||||
Token::Object(obj) => match obj {
|
Token::Object(obj) => match obj {
|
||||||
Object::Bold(_) => todo!(),
|
Object::Bold(inner) => Box::new(inner.children.iter().map(Token::Object)),
|
||||||
Object::Italic(_) => todo!(),
|
Object::Italic(inner) => Box::new(inner.children.iter().map(Token::Object)),
|
||||||
Object::Underline(_) => todo!(),
|
Object::Underline(inner) => Box::new(inner.children.iter().map(Token::Object)),
|
||||||
Object::StrikeThrough(_) => todo!(),
|
Object::StrikeThrough(inner) => Box::new(inner.children.iter().map(Token::Object)),
|
||||||
Object::Code(_) => todo!(),
|
Object::Code(_) => Box::new(std::iter::empty()),
|
||||||
Object::Verbatim(_) => todo!(),
|
Object::Verbatim(_) => Box::new(std::iter::empty()),
|
||||||
Object::PlainText(_) => todo!(),
|
Object::PlainText(_) => Box::new(std::iter::empty()),
|
||||||
Object::RegularLink(_) => todo!(),
|
Object::RegularLink(_) => Box::new(std::iter::empty()),
|
||||||
Object::RadioLink(_) => todo!(),
|
Object::RadioLink(inner) => Box::new(inner.children.iter().map(Token::Object)),
|
||||||
Object::RadioTarget(_) => todo!(),
|
Object::RadioTarget(inner) => Box::new(inner.children.iter().map(Token::Object)),
|
||||||
Object::PlainLink(_) => todo!(),
|
Object::PlainLink(_) => Box::new(std::iter::empty()),
|
||||||
Object::AngleLink(_) => todo!(),
|
Object::AngleLink(_) => Box::new(std::iter::empty()),
|
||||||
Object::OrgMacro(_) => todo!(),
|
Object::OrgMacro(_) => Box::new(std::iter::empty()),
|
||||||
},
|
},
|
||||||
Token::Element(elem) => match elem {
|
Token::Element(elem) => match elem {
|
||||||
Element::Paragraph(inner) => Box::new(inner.children.iter().map(Token::Object)),
|
Element::Paragraph(inner) => Box::new(inner.children.iter().map(Token::Object)),
|
||||||
|
Loading…
Reference in New Issue
Block a user