Update to askama 0.14

This commit is contained in:
Greg Burri 2025-04-28 23:23:13 +02:00
parent 6651d6e91d
commit bf02420e18
2 changed files with 5 additions and 2 deletions

View file

@ -30,7 +30,7 @@ sqlx = { version = "0.8", features = ["sqlite", "runtime-tokio", "chrono"] }
async-compression = { version = "0.4", features = ["tokio", "gzip"] } async-compression = { version = "0.4", features = ["tokio", "gzip"] }
askama = "0.13" askama = "0.14"
comrak = "0.38" comrak = "0.38"
argon2 = { version = "0.5", features = ["default", "std"] } argon2 = { version = "0.5", features = ["default", "std"] }

View file

@ -40,7 +40,10 @@ impl Recipes {
mod filters { mod filters {
use askama::filters::Safe; use askama::filters::Safe;
pub fn markdown<T: std::fmt::Display>(s: T) -> askama::Result<Safe<String>> { pub fn markdown<T: std::fmt::Display>(
s: T,
_: &dyn askama::Values,
) -> askama::Result<Safe<String>> {
Ok(Safe(comrak::markdown_to_html( Ok(Safe(comrak::markdown_to_html(
&s.to_string(), &s.to_string(),
&comrak::ComrakOptions::default(), &comrak::ComrakOptions::default(),