diff --git a/default_environment/templates/html/bold.dust b/default_environment/templates/html/bold.dust index 1a6f4d3..ff622e7 100644 --- a/default_environment/templates/html/bold.dust +++ b/default_environment/templates/html/bold.dust @@ -1 +1,3 @@ -bold +{#.children} + {>object/} +{/.children} diff --git a/default_environment/templates/html/code.dust b/default_environment/templates/html/code.dust index 01b2d72..d8ccfe4 100644 --- a/default_environment/templates/html/code.dust +++ b/default_environment/templates/html/code.dust @@ -1 +1 @@ -code +{.source} diff --git a/default_environment/templates/html/italic.dust b/default_environment/templates/html/italic.dust index 931b735..9211726 100644 --- a/default_environment/templates/html/italic.dust +++ b/default_environment/templates/html/italic.dust @@ -1 +1,3 @@ -italic +{#.children} + {>object/} +{/.children} diff --git a/default_environment/templates/html/plain_text.dust b/default_environment/templates/html/plain_text.dust index e538e19..5723210 100644 --- a/default_environment/templates/html/plain_text.dust +++ b/default_environment/templates/html/plain_text.dust @@ -1 +1 @@ -plain_text +{.source} diff --git a/default_environment/templates/html/strike_through.dust b/default_environment/templates/html/strike_through.dust index 5146c07..62d7beb 100644 --- a/default_environment/templates/html/strike_through.dust +++ b/default_environment/templates/html/strike_through.dust @@ -1 +1,3 @@ -strike_through +{#.children} + {>object/} +{/.children} diff --git a/default_environment/templates/html/underline.dust b/default_environment/templates/html/underline.dust index 5d239f5..975aba2 100644 --- a/default_environment/templates/html/underline.dust +++ b/default_environment/templates/html/underline.dust @@ -1 +1,3 @@ -underline +{#.children} + {>object/} +{/.children} diff --git a/default_environment/templates/html/verbatim.dust b/default_environment/templates/html/verbatim.dust index 26b12cc..d8ccfe4 100644 --- a/default_environment/templates/html/verbatim.dust +++ b/default_environment/templates/html/verbatim.dust @@ -1 +1 @@ -verbatim +{.source} diff --git a/src/context/plain_text.rs b/src/context/plain_text.rs index 12b9e79..0e856fa 100644 --- a/src/context/plain_text.rs +++ b/src/context/plain_text.rs @@ -9,15 +9,19 @@ use crate::intermediate::IPlainText; #[derive(Debug, Serialize)] #[serde(tag = "type")] #[serde(rename = "plain_text")] -pub(crate) struct RenderPlainText {} +pub(crate) struct RenderPlainText { + source: String, +} impl RenderPlainText { pub(crate) fn new( config: &Config, output_directory: &Path, output_file: &Path, - heading: &IPlainText, + original: &IPlainText, ) -> Result { - Ok(RenderPlainText {}) + Ok(RenderPlainText { + source: original.source.clone(), + }) } } diff --git a/src/intermediate/plain_text.rs b/src/intermediate/plain_text.rs index 490c843..d8d5558 100644 --- a/src/intermediate/plain_text.rs +++ b/src/intermediate/plain_text.rs @@ -5,7 +5,7 @@ use super::registry::Registry; #[derive(Debug)] pub(crate) struct IPlainText { - source: String, + pub(crate) source: String, } impl IPlainText {