Add inline source block.
This commit is contained in:
parent
eaea37f448
commit
6d83828012
@ -1 +1 @@
|
|||||||
!!!!!!!! inline_source_block
|
<code>{.value}</code>
|
||||||
|
@ -9,15 +9,19 @@ use crate::intermediate::IInlineSourceBlock;
|
|||||||
#[derive(Debug, Serialize)]
|
#[derive(Debug, Serialize)]
|
||||||
#[serde(tag = "type")]
|
#[serde(tag = "type")]
|
||||||
#[serde(rename = "inline_source_block")]
|
#[serde(rename = "inline_source_block")]
|
||||||
pub(crate) struct RenderInlineSourceBlock {}
|
pub(crate) struct RenderInlineSourceBlock {
|
||||||
|
value: String,
|
||||||
|
}
|
||||||
|
|
||||||
impl RenderInlineSourceBlock {
|
impl RenderInlineSourceBlock {
|
||||||
pub(crate) fn new(
|
pub(crate) fn new(
|
||||||
config: &Config,
|
config: &Config,
|
||||||
output_directory: &Path,
|
output_directory: &Path,
|
||||||
output_file: &Path,
|
output_file: &Path,
|
||||||
comment: &IInlineSourceBlock,
|
original: &IInlineSourceBlock,
|
||||||
) -> Result<RenderInlineSourceBlock, CustomError> {
|
) -> Result<RenderInlineSourceBlock, CustomError> {
|
||||||
Ok(RenderInlineSourceBlock {})
|
Ok(RenderInlineSourceBlock {
|
||||||
|
value: original.value.clone(),
|
||||||
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -3,13 +3,17 @@ use crate::error::CustomError;
|
|||||||
use super::registry::Registry;
|
use super::registry::Registry;
|
||||||
|
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
pub(crate) struct IInlineSourceBlock {}
|
pub(crate) struct IInlineSourceBlock {
|
||||||
|
pub(crate) value: String,
|
||||||
|
}
|
||||||
|
|
||||||
impl IInlineSourceBlock {
|
impl IInlineSourceBlock {
|
||||||
pub(crate) async fn new<'parse>(
|
pub(crate) async fn new<'parse>(
|
||||||
registry: &mut Registry<'parse>,
|
registry: &mut Registry<'parse>,
|
||||||
original: &organic::types::InlineSourceBlock<'parse>,
|
original: &organic::types::InlineSourceBlock<'parse>,
|
||||||
) -> Result<IInlineSourceBlock, CustomError> {
|
) -> Result<IInlineSourceBlock, CustomError> {
|
||||||
Ok(IInlineSourceBlock {})
|
Ok(IInlineSourceBlock {
|
||||||
|
value: original.value.to_owned(),
|
||||||
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user