From 27447c8db1ec732e82c7f75e71ac09d4d7edce62 Mon Sep 17 00:00:00 2001 From: René Kijewski Date: Wed, 20 Jul 2022 15:13:57 +0200 Subject: Update to comrak v0.14 --- askama/Cargo.toml | 2 +- askama/src/filters/mod.rs | 3 ++- book/src/filters.md | 2 +- testing/Cargo.toml | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/askama/Cargo.toml b/askama/Cargo.toml index f580864..f421935 100644 --- a/askama/Cargo.toml +++ b/askama/Cargo.toml @@ -39,7 +39,7 @@ mime_guess = [] [dependencies] askama_derive = { version = "0.12.0", path = "../askama_derive" } askama_escape = { version = "0.10.3", path = "../askama_escape" } -comrak = { version = "0.13", optional = true, default-features = false } +comrak = { version = "0.14", optional = true, default-features = false } dep_humansize = { package = "humansize", version = "1.1.0", optional = true } dep_num_traits = { package = "num-traits", version = "0.2.6", optional = true } percent-encoding = { version = "2.1.0", optional = true } diff --git a/askama/src/filters/mod.rs b/askama/src/filters/mod.rs index 4350d70..b9f1fc2 100644 --- a/askama/src/filters/mod.rs +++ b/askama/src/filters/mod.rs @@ -351,7 +351,7 @@ where { use comrak::{ markdown_to_html, ComrakExtensionOptions, ComrakOptions, ComrakParseOptions, - ComrakRenderOptions, + ComrakRenderOptions, ListStyleType, }; const DEFAULT_OPTIONS: ComrakOptions = ComrakOptions { @@ -380,6 +380,7 @@ where hardbreaks: false, github_pre_lang: false, width: 0, + list_style: ListStyleType::Dash, }, }; diff --git a/book/src/filters.md b/book/src/filters.md index f8e30a7..ce1ff6e 100644 --- a/book/src/filters.md +++ b/book/src/filters.md @@ -374,7 +374,7 @@ Ugly: [#markdown]: #markdown Enabling the `markdown` feature will enable the use of the `markdown` filter. -This will render a value using a [GitHub flavored CommonMark](https://docs.rs/comrak/0.12.*/comrak/) syntax. +This will render a value using a [GitHub flavored CommonMark](https://docs.rs/comrak/0.14.*/comrak/) syntax. By default the extensions “autolink”, “strikethrough”, “tagfilter”, and “table” are enabled. Any raw HTML gets escaped. diff --git a/testing/Cargo.toml b/testing/Cargo.toml index 77ab25e..3dac5e8 100644 --- a/testing/Cargo.toml +++ b/testing/Cargo.toml @@ -13,7 +13,7 @@ markdown = ["comrak", "askama/markdown"] [dependencies] askama = { path = "../askama", version = "0.11.0-beta.1" } -comrak = { version = "0.13", default-features = false, optional = true } +comrak = { version = "0.14", default-features = false, optional = true } serde_json = { version = "1.0", optional = true } [dev-dependencies] -- cgit