Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

Commit 4af1963

Browse files
authored
Add typst in default text escapers (#1108)
1 parent 88a6e1f commit 4af1963

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

askama_derive/src/config.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ static CONFIG_FILE_NAME: &str = "askama.toml";
305305
static DEFAULT_SYNTAX_NAME: &str = "default";
306306
static DEFAULT_ESCAPERS: &[(&[&str], &str)] = &[
307307
(&["html", "htm", "svg", "xml"], "::Html"),
308-
(&["md", "none", "txt", "yml", ""], "::Text"),
308+
(&["md", "none", "txt", "typ", "yml", ""], "::Text"),
309309
(&["j2", "jinja", "jinja2"], "::Html"),
310310
];
311311

@@ -574,7 +574,7 @@ mod tests {
574574
"::askama::Html".into()
575575
),
576576
(
577-
str_set(&["md", "none", "txt", "yml", ""]),
577+
str_set(&["md", "none", "txt", "typ", "yml", ""]),
578578
"::askama::Text".into()
579579
),
580580
(str_set(&["j2", "jinja", "jinja2"]), "::askama::Html".into()),

0 commit comments

Comments
 (0)