From bf02420e18dc606850f9f1f6bc3e4b6cd6e77bbc Mon Sep 17 00:00:00 2001 From: Greg Burri Date: Mon, 28 Apr 2025 23:23:13 +0200 Subject: [PATCH] Update to askama 0.14 --- backend/Cargo.toml | 2 +- backend/src/html_templates.rs | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/backend/Cargo.toml b/backend/Cargo.toml index 6e3fb03..a5beac3 100644 --- a/backend/Cargo.toml +++ b/backend/Cargo.toml @@ -30,7 +30,7 @@ sqlx = { version = "0.8", features = ["sqlite", "runtime-tokio", "chrono"] } async-compression = { version = "0.4", features = ["tokio", "gzip"] } -askama = "0.13" +askama = "0.14" comrak = "0.38" argon2 = { version = "0.5", features = ["default", "std"] } diff --git a/backend/src/html_templates.rs b/backend/src/html_templates.rs index a0e6d93..1f7ee47 100644 --- a/backend/src/html_templates.rs +++ b/backend/src/html_templates.rs @@ -40,7 +40,10 @@ impl Recipes { mod filters { use askama::filters::Safe; - pub fn markdown(s: T) -> askama::Result> { + pub fn markdown( + s: T, + _: &dyn askama::Values, + ) -> askama::Result> { Ok(Safe(comrak::markdown_to_html( &s.to_string(), &comrak::ComrakOptions::default(),