aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar René Kijewski <kijewski@library.vetmed.fu-berlin.de>2022-07-20 15:13:57 +0200
committerLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2022-07-20 15:25:17 +0200
commit27447c8db1ec732e82c7f75e71ac09d4d7edce62 (patch)
tree61f1b64cb301f4147beec6053cd8e9fd104b172d
parentd6af26a0ce1476c59318a5e6707caa199ee094ef (diff)
downloadaskama-27447c8db1ec732e82c7f75e71ac09d4d7edce62.tar.gz
askama-27447c8db1ec732e82c7f75e71ac09d4d7edce62.tar.bz2
askama-27447c8db1ec732e82c7f75e71ac09d4d7edce62.zip
Update to comrak v0.14
-rw-r--r--askama/Cargo.toml2
-rw-r--r--askama/src/filters/mod.rs3
-rw-r--r--book/src/filters.md2
-rw-r--r--testing/Cargo.toml2
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: <script>var data = '{{data|json|safe}}';</script>
[#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]