From b7108f0f5d7e5a4a2347958f411634bfd291864c Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Mon, 1 Apr 2019 21:58:05 +0200 Subject: Add md and yml to non-escaped extensions (fixes #229) --- askama/src/lib.rs | 6 +++--- askama_shared/src/lib.rs | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/askama/src/lib.rs b/askama/src/lib.rs index ad0c85f..08a7112 100644 --- a/askama/src/lib.rs +++ b/askama/src/lib.rs @@ -120,9 +120,9 @@ //! the use of that escaper. Extensions are matched in order, starting with the //! first escaper configured and ending with the default escapers for HTML //! (extensions `html`, `htm`, `xml`, `j2`, `jinja`, `jinja2`) and plain text -//! (no escaping; `none`, `txt`, and the empty string). Note that this means -//! you can also define other escapers that match different extensions to the -//! same escaper. +//! (no escaping; `md`, `yml`, `none`, `txt`, and the empty string). Note that +//! this means you can also define other escapers that match different extensions +//! to the same escaper. //! //! ## Variables //! diff --git a/askama_shared/src/lib.rs b/askama_shared/src/lib.rs index 8014b88..0d68120 100644 --- a/askama_shared/src/lib.rs +++ b/askama_shared/src/lib.rs @@ -404,7 +404,7 @@ mod tests { vec![ (str_set(&["js"]), "::askama::Js".into()), (str_set(&["html", "htm", "xml"]), "::askama::Html".into()), - (str_set(&["none", "txt", ""]), "::askama::Text".into()), + (str_set(&["md", "yml", "none", "txt", ""]), "::askama::Text".into()), (str_set(&["j2", "jinja", "jinja2"]), "::askama::Html".into()), ] ); -- cgit