From 17d0e3df7e77a13e3c1b2f8841bb2ff6ac68951a Mon Sep 17 00:00:00 2001 From: Nick Groenen Date: Sat, 5 Nov 2022 14:34:18 +0100 Subject: [PATCH] Upgrade pulldown-cmark-to-cmark to 10.0.x --- Cargo.lock | 8 ++++---- Cargo.toml | 2 +- src/lib.rs | 1 - 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index c3e39d8..477a84e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -388,9 +388,9 @@ dependencies = [ [[package]] name = "pulldown-cmark-to-cmark" -version = "9.0.0" +version = "10.0.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3f94dc756ef5c50ad28ccea8428ba5de9f4dca1fff6516a26b85e0b125a70d17" +checksum = "0194e6e1966c23cc5fd988714f85b18d548d773e81965413555d96569931833d" dependencies = [ "pulldown-cmark", ] @@ -578,9 +578,9 @@ dependencies = [ [[package]] name = "unicode-width" -version = "0.1.9" +version = "0.1.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3ed742d4ea2bd1176e236172c8429aaf54486e7ac098db29ffe6529e0ce50973" +checksum = "c0edd1e5b14653f783770bce4a4dabb4a5108a5370a5f5d8cfe8710c361f6c8b" [[package]] name = "unicode-xid" diff --git a/Cargo.toml b/Cargo.toml index f577ade..070680a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -33,7 +33,7 @@ matter = "0.1.0-alpha4" pathdiff = "0.2.1" percent-encoding = "2.2.0" pulldown-cmark = "0.9.2" -pulldown-cmark-to-cmark = "9.0.0" +pulldown-cmark-to-cmark = "10.0.4" rayon = "1.5.3" regex = "1.6.0" serde_yaml = "0.9.14" diff --git a/src/lib.rs b/src/lib.rs index f6fdcbd..c9cb34e 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -730,7 +730,6 @@ fn render_mdevents_to_mdtext(markdown: MarkdownEvents) -> String { cmark_with_options( markdown.iter(), &mut buffer, - None, pulldown_cmark_to_cmark::Options::default(), ) .expect("formatting to string not expected to fail");