From 6be29f6ae2a69f84a8750ccaf9a3f3b5a6198b09 Mon Sep 17 00:00:00 2001 From: hi-rustin Date: Tue, 20 Sep 2022 21:41:05 +0800 Subject: [PATCH] Bump pulldown-cmark version to 0.9 Signed-off-by: hi-rustin --- Cargo.lock | 4 ++-- Cargo.toml | 2 +- src/cli/markdown.rs | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 5242917c025..35970865c01 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1606,9 +1606,9 @@ dependencies = [ [[package]] name = "pulldown-cmark" -version = "0.8.0" +version = "0.9.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ffade02495f22453cd593159ea2f59827aae7f53fa8323f756799b670881dcf8" +checksum = "2d9cc634bc78768157b5cbfe988ffcd1dcba95cd2b2f03a88316c08c6d00ed63" dependencies = [ "bitflags", "memchr", diff --git a/Cargo.toml b/Cargo.toml index 92de5b2882c..af55aa4e332 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -43,7 +43,7 @@ opener = "0.5.0" # Used by `curl` or `reqwest` backend although it isn't imported # by our rustup. openssl = {version = "0.10", optional = true} -pulldown-cmark = {version = "0.8", default-features = false} +pulldown-cmark = {version = "0.9", default-features = false} rand = "0.8" regex = "1" remove_dir_all = "0.7.0" diff --git a/src/cli/markdown.rs b/src/cli/markdown.rs index 9ae9401a292..48a838dd738 100644 --- a/src/cli/markdown.rs +++ b/src/cli/markdown.rs @@ -123,7 +123,7 @@ impl<'a, T: Terminal + io::Write + 'a> LineFormatter<'a, T> { Tag::Paragraph => { self.wrapper.write_line(); } - Tag::Heading(_level) => { + Tag::Heading(_level,_identifier,_classes) => { self.push_attr(Attr::Bold); self.wrapper.write_line(); } @@ -160,7 +160,7 @@ impl<'a, T: Terminal + io::Write + 'a> LineFormatter<'a, T> { Tag::Paragraph => { self.wrapper.write_line(); } - Tag::Heading(_level) => { + Tag::Heading(_level,_identifier,_classes) => { self.wrapper.write_line(); self.pop_attr(); }