Files
natter/src/intermediate/inline_source_block.rs

23 lines
544 B
Rust
Raw Normal View History

use super::macros::intermediate;
use crate::error::CustomError;
2023-12-21 14:56:58 -05:00
use organic::types::StandardProperties;
2023-10-27 17:48:19 -04:00
2023-10-29 15:36:15 -04:00
#[derive(Debug, Clone)]
2023-10-29 10:44:32 -04:00
pub(crate) struct IInlineSourceBlock {
pub(crate) value: String,
2023-12-21 14:56:58 -05:00
pub(crate) post_blank: organic::types::PostBlank,
2023-10-29 10:44:32 -04:00
}
2023-10-27 17:48:19 -04:00
intermediate!(
IInlineSourceBlock,
&'orig organic::types::InlineSourceBlock<'parse>,
original,
_intermediate_context,
{
Ok(IInlineSourceBlock {
value: original.value.to_owned(),
2023-12-21 14:56:58 -05:00
post_blank: original.get_post_blank(),
})
}
);