Update to askama 0.14
This commit is contained in:
parent
6651d6e91d
commit
bf02420e18
2 changed files with 5 additions and 2 deletions
|
|
@ -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