Create structure for export snippets.

This commit is contained in:
Tom Alexander
2023-07-19 00:09:16 -04:00
parent eb03342506
commit 1fb8ce9af6
5 changed files with 56 additions and 0 deletions

View File

@@ -54,6 +54,7 @@ impl<'r, 's> Token<'r, 's> {
Object::OrgMacro(_) => Box::new(std::iter::empty()),
Object::Entity(_) => Box::new(std::iter::empty()),
Object::LatexFragment(_) => Box::new(std::iter::empty()),
Object::ExportSnippet(_) => Box::new(std::iter::empty()),
},
Token::Element(elem) => match elem {
Element::Paragraph(inner) => Box::new(inner.children.iter().map(Token::Object)),