Add keyword and as no-op.
This commit is contained in:
@@ -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!(),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user