diff options
| -rw-r--r-- | splorm/Cargo.toml | 1 | ||||
| -rw-r--r-- | splorm/src/handler/templated.rs | 5 |
2 files changed, 5 insertions, 1 deletions
diff --git a/splorm/Cargo.toml b/splorm/Cargo.toml index d5f7f34..789d063 100644 --- a/splorm/Cargo.toml +++ b/splorm/Cargo.toml @@ -19,3 +19,4 @@ axum.workspace = true # subcrates paige.workspace = true timeparse.workspace = true +markup.workspace = true 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) |
