aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2019-04-01 21:58:05 +0200
committerLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2019-04-01 21:58:05 +0200
commitb7108f0f5d7e5a4a2347958f411634bfd291864c (patch)
tree771d93e956d42f05aa1fce7d7e5a707d5e4cb1b7
parentd1b47f8908f7ca71da1f767432bb33cb87bbee14 (diff)
downloadaskama-b7108f0f5d7e5a4a2347958f411634bfd291864c.tar.gz
askama-b7108f0f5d7e5a4a2347958f411634bfd291864c.tar.bz2
askama-b7108f0f5d7e5a4a2347958f411634bfd291864c.zip
Add md and yml to non-escaped extensions (fixes #229)
-rw-r--r--askama/src/lib.rs6
-rw-r--r--askama_shared/src/lib.rs2
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()),
]
);