Skip to content

Commit

Permalink
Add typst in default text escapers (#1108)
Browse files Browse the repository at this point in the history
  • Loading branch information
xabi00 authored Nov 21, 2024
1 parent 88a6e1f commit 4af1963
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions askama_derive/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ static CONFIG_FILE_NAME: &str = "askama.toml";
static DEFAULT_SYNTAX_NAME: &str = "default";
static DEFAULT_ESCAPERS: &[(&[&str], &str)] = &[
(&["html", "htm", "svg", "xml"], "::Html"),
(&["md", "none", "txt", "yml", ""], "::Text"),
(&["md", "none", "txt", "typ", "yml", ""], "::Text"),
(&["j2", "jinja", "jinja2"], "::Html"),
];

Expand Down Expand Up @@ -574,7 +574,7 @@ mod tests {
"::askama::Html".into()
),
(
str_set(&["md", "none", "txt", "yml", ""]),
str_set(&["md", "none", "txt", "typ", "yml", ""]),
"::askama::Text".into()
),
(str_set(&["j2", "jinja", "jinja2"]), "::askama::Html".into()),
Expand Down

0 comments on commit 4af1963

Please sign in to comment.