diff --git a/src/templates.rs b/src/templates.rs index 90e50a65..c3bd0635 100644 --- a/src/templates.rs +++ b/src/templates.rs @@ -204,7 +204,7 @@ impl AllTemplates { handlebars.register_helper("static_path", Box::new(static_path)); handlebars_helper!(markdown_helper: |x: str| - markdown::to_html_with_options(&x, &markdown::Options::gfm()) + markdown::to_html_with_options(x, &markdown::Options::gfm()) .unwrap_or_else(|s|s) ); handlebars.register_helper("markdown", Box::new(markdown_helper));