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)] | ||||
| #[serde(tag = "type")] | ||||
| #[serde(rename = "inline_source_block")] | ||||
| pub(crate) struct RenderInlineSourceBlock {} | ||||
| pub(crate) struct RenderInlineSourceBlock { | ||||
|     value: String, | ||||
| } | ||||
| 
 | ||||
| impl RenderInlineSourceBlock { | ||||
|     pub(crate) fn new( | ||||
|         config: &Config, | ||||
|         output_directory: &Path, | ||||
|         output_file: &Path, | ||||
|         comment: &IInlineSourceBlock, | ||||
|         original: &IInlineSourceBlock, | ||||
|     ) -> Result<RenderInlineSourceBlock, CustomError> { | ||||
|         Ok(RenderInlineSourceBlock {}) | ||||
|         Ok(RenderInlineSourceBlock { | ||||
|             value: original.value.clone(), | ||||
|         }) | ||||
|     } | ||||
| } | ||||
|  | ||||
| @ -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(), | ||||
|         }) | ||||
|     } | ||||
| } | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Tom Alexander
						Tom Alexander