From deab3ba7514b1525441394a7fbd7af863381336a Mon Sep 17 00:00:00 2001 From: Michael Bryan Date: Fri, 16 Jun 2017 06:50:13 +0800 Subject: [PATCH] Tiny whitespace changes --- src/renderer/html_handlebars/hbs_renderer.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderer/html_handlebars/hbs_renderer.rs b/src/renderer/html_handlebars/hbs_renderer.rs index db2ae69e..3351c7ab 100644 --- a/src/renderer/html_handlebars/hbs_renderer.rs +++ b/src/renderer/html_handlebars/hbs_renderer.rs @@ -49,7 +49,6 @@ impl HtmlHandlebars { content = helpers::playpen::render_playpen(&content, p); } - // Render markdown using the pulldown-cmark crate content = utils::render_markdown(&content); print_content.push_str(&content); @@ -58,6 +57,7 @@ impl HtmlHandlebars { ch.path .to_str() .ok_or_else(|| io::Error::new(io::ErrorKind::Other, "Could not convert path to str"))?; + data.insert("path".to_owned(), json!(path)); data.insert("content".to_owned(), json!(content)); data.insert("chapter_title".to_owned(), json!(ch.name));