about summary refs log tree commit diff
diff options
context:
space:
mode:
authorgennyble <gen@nyble.dev>2026-09-21 15:02:32 -0500
committergennyble <gen@nyble.dev>2026-09-21 15:02:32 -0500
commite793d90dd9624acccae852023e4ea4bb8343e3fe (patch)
tree9e7a0dcbb664e0ab947d2a1d35abf614f7ac99c3
parentb5a655d89e8075ffc40725e990bc5c863b4e5411 (diff)
splorm uses legacy markup on pages
-rw-r--r--splorm/Cargo.toml1
-rw-r--r--splorm/src/handler/templated.rs5
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)