Skip to content

Commit 63e4c76

Browse files
authored
Merge pull request #151 from liushuyu/master
Upgrade pulldown-cmark to 0.11
2 parents 421df70 + cc74ef5 commit 63e4c76

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ contains_regex = ["regex", "semver"]
1919

2020
[dependencies]
2121
proc-macro2 = { version = "1.0.36", default-features = false, features = ["span-locations"], optional = true }
22-
pulldown-cmark = { version = "0.9.1", default-features = false, optional = true }
22+
pulldown-cmark = { version = "0.11", default-features = false, optional = true }
2323
regex = { version = "1.5.4", default-features = false, features = ["std", "unicode"], optional = true }
2424
semver = { version = "1.0.5", optional = true }
2525
syn = { version = "2.0.15", default-features = false, features = ["parsing", "printing", "full"], optional = true }

src/markdown_deps.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#![cfg(feature = "markdown_deps_updated")]
22
use pulldown_cmark::CodeBlockKind::Fenced;
3-
use pulldown_cmark::{Event, Parser, Tag};
3+
use pulldown_cmark::{Event, Parser, Tag, TagEnd};
44
use semver::{Version, VersionReq};
55
use toml::Value;
66

@@ -78,7 +78,7 @@ fn find_toml_blocks(text: &str) -> Vec<CodeBlock> {
7878
block.content.push_str(&code);
7979
}
8080
}
81-
Event::End(Tag::CodeBlock(_)) => {
81+
Event::End(TagEnd::CodeBlock) => {
8282
if let Some(block) = current_block.take() {
8383
code_blocks.push(block);
8484
}

0 commit comments

Comments
 (0)