diff options
Diffstat (limited to 'splorm/src/handler')
| -rw-r--r-- | splorm/src/handler/templated.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/splorm/src/handler/templated.rs b/splorm/src/handler/templated.rs index 596210d..a478ab1 100644 --- a/splorm/src/handler/templated.rs +++ b/splorm/src/handler/templated.rs @@ -31,7 +31,10 @@ pub async fn send_file(path: RequestPath, settings: &Settings) -> Result<Respons tvars.apply_styles(&mut page_template); tvars.apply_published(&mut page_template); tvars.apply_pathnav(&mut page_template, path); - page_template.set("main", template.content); + + let markedup = markup::legacy::process(&template.content); + markedup.fill_document(&mut page_template); + page_template.set("main", markedup.into_content()); Response::builder() .status(200) |
