Add inline source block.

This commit is contained in:
Tom Alexander
2023-10-29 10:44:32 -04:00
parent eaea37f448
commit 6d83828012
3 changed files with 14 additions and 6 deletions

View File

@@ -3,13 +3,17 @@ use crate::error::CustomError;
use super::registry::Registry;
#[derive(Debug)]
pub(crate) struct IInlineSourceBlock {}
pub(crate) struct IInlineSourceBlock {
pub(crate) value: String,
}
impl IInlineSourceBlock {
pub(crate) async fn new<'parse>(
registry: &mut Registry<'parse>,
original: &organic::types::InlineSourceBlock<'parse>,
) -> Result<IInlineSourceBlock, CustomError> {
Ok(IInlineSourceBlock {})
Ok(IInlineSourceBlock {
value: original.value.to_owned(),
})
}
}