From deb54372a2b6f6846b1db36444a6abc4924d615b Mon Sep 17 00:00:00 2001 From: Mylloon Date: Sat, 13 Jul 2024 00:29:07 +0200 Subject: [PATCH] update comrak --- Cargo.lock | 4 ++-- Cargo.toml | 2 +- src/misc/markdown.rs | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 16176ab..a1d85b8 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -709,9 +709,9 @@ checksum = "0b6a852b24ab71dffc585bcb46eaf7959d175cb865a7152e35b348d1b2960422" [[package]] name = "comrak" -version = "0.25.0" +version = "0.26.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "777213abd0d8d131953e66f72837f3298dcba9ca9ade0fb1ab8f16ee4aa867dc" +checksum = "395ab67843c57df5a4ee29d610740828dbc928cc64ecf0f2a1d5cd0e98e107a9" dependencies = [ "caseless", "clap", diff --git a/Cargo.toml b/Cargo.toml index 059b125..a216e3f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -21,7 +21,7 @@ serde_json = "1.0" minify-html = "0.15" minify-js = "0.6" glob = "0.3" -comrak = "0.25" +comrak = "0.26" reqwest = { version = "0.12", features = ["json"] } chrono = { version = "0.4.38", default-features = false, features = ["clock"]} chrono-tz = "0.9" diff --git a/src/misc/markdown.rs b/src/misc/markdown.rs index b45a951..336efff 100644 --- a/src/misc/markdown.rs +++ b/src/misc/markdown.rs @@ -161,6 +161,7 @@ pub fn get_options<'a>() -> ComrakOptions<'a> { options.render.escape = false; options.render.list_style = ListStyleType::Dash; options.render.sourcepos = false; + options.render.experimental_inline_sourcepos = false; options.render.escaped_char_spans = false; options.render.ignore_setext = true; options.render.ignore_empty_links = true;