Add keyword and as no-op.

This commit is contained in:
Tom Alexander
2023-10-27 16:09:44 -04:00
parent f9377d7609
commit 5891ac7fb7
8 changed files with 58 additions and 3 deletions

View File

@@ -1,11 +1,13 @@
use crate::error::CustomError;
use super::keyword::IKeyword;
use super::registry::Registry;
use super::IParagraph;
#[derive(Debug)]
pub(crate) enum IElement {
Paragraph(IParagraph),
Keyword(IKeyword),
}
impl IElement {
@@ -37,7 +39,9 @@ impl IElement {
organic::types::Element::Planning(_) => todo!(),
organic::types::Element::FixedWidthArea(_) => todo!(),
organic::types::Element::HorizontalRule(_) => todo!(),
organic::types::Element::Keyword(_) => todo!(),
organic::types::Element::Keyword(inner) => {
Ok(IElement::Keyword(IKeyword::new(registry, inner).await?))
}
organic::types::Element::BabelCall(_) => todo!(),
organic::types::Element::LatexEnvironment(_) => todo!(),
}