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

@ -40,7 +40,10 @@ impl Recipes {
mod filters {
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(
&s.to_string(),
&comrak::ComrakOptions::default(),