Add comment as a no-op.
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
use crate::error::CustomError;
|
||||
|
||||
use super::comment::IComment;
|
||||
use super::keyword::IKeyword;
|
||||
use super::registry::Registry;
|
||||
use super::IParagraph;
|
||||
@@ -8,6 +9,7 @@ use super::IParagraph;
|
||||
pub(crate) enum IElement {
|
||||
Paragraph(IParagraph),
|
||||
Keyword(IKeyword),
|
||||
Comment(IComment),
|
||||
}
|
||||
|
||||
impl IElement {
|
||||
@@ -25,7 +27,9 @@ impl IElement {
|
||||
organic::types::Element::SpecialBlock(_) => todo!(),
|
||||
organic::types::Element::DynamicBlock(_) => todo!(),
|
||||
organic::types::Element::FootnoteDefinition(_) => todo!(),
|
||||
organic::types::Element::Comment(_) => todo!(),
|
||||
organic::types::Element::Comment(inner) => {
|
||||
Ok(IElement::Comment(IComment::new(registry, inner).await?))
|
||||
}
|
||||
organic::types::Element::Drawer(_) => todo!(),
|
||||
organic::types::Element::PropertyDrawer(_) => todo!(),
|
||||
organic::types::Element::Table(_) => todo!(),
|
||||
|
||||
Reference in New Issue
Block a user