29 lines
619 B
Rust
29 lines
619 B
Rust
use serde::Serialize;
|
|
|
|
use super::render_context::RenderContext;
|
|
use crate::error::CustomError;
|
|
use crate::intermediate::IInlineSourceBlock;
|
|
|
|
use super::macros::render;
|
|
|
|
#[derive(Debug, Serialize)]
|
|
#[serde(tag = "type")]
|
|
#[serde(rename = "inline_source_block")]
|
|
pub(crate) struct RenderInlineSourceBlock {
|
|
value: String,
|
|
post_blank: organic::types::PostBlank,
|
|
}
|
|
|
|
render!(
|
|
RenderInlineSourceBlock,
|
|
IInlineSourceBlock,
|
|
original,
|
|
_render_context,
|
|
{
|
|
Ok(RenderInlineSourceBlock {
|
|
value: original.value.clone(),
|
|
post_blank: original.post_blank,
|
|
})
|
|
}
|
|
);
|