Update to askama 0.14
This commit is contained in:
parent
6651d6e91d
commit
bf02420e18
2 changed files with 5 additions and 2 deletions
|
|
@ -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"] }
|
||||
|
|
|
|||
|
|
@ -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(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue