Skip to content

Commit

Permalink
Merge pull request #151 from liushuyu/master
Browse files Browse the repository at this point in the history
Upgrade pulldown-cmark to 0.11
  • Loading branch information
mgeisler authored May 25, 2024
2 parents 421df70 + cc74ef5 commit 63e4c76
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ contains_regex = ["regex", "semver"]

[dependencies]
proc-macro2 = { version = "1.0.36", default-features = false, features = ["span-locations"], optional = true }
pulldown-cmark = { version = "0.9.1", default-features = false, optional = true }
pulldown-cmark = { version = "0.11", default-features = false, optional = true }
regex = { version = "1.5.4", default-features = false, features = ["std", "unicode"], optional = true }
semver = { version = "1.0.5", optional = true }
syn = { version = "2.0.15", default-features = false, features = ["parsing", "printing", "full"], optional = true }
Expand Down
4 changes: 2 additions & 2 deletions src/markdown_deps.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#![cfg(feature = "markdown_deps_updated")]
use pulldown_cmark::CodeBlockKind::Fenced;
use pulldown_cmark::{Event, Parser, Tag};
use pulldown_cmark::{Event, Parser, Tag, TagEnd};
use semver::{Version, VersionReq};
use toml::Value;

Expand Down Expand Up @@ -78,7 +78,7 @@ fn find_toml_blocks(text: &str) -> Vec<CodeBlock> {
block.content.push_str(&code);
}
}
Event::End(Tag::CodeBlock(_)) => {
Event::End(TagEnd::CodeBlock) => {
if let Some(block) = current_block.take() {
code_blocks.push(block);
}
Expand Down

0 comments on commit 63e4c76

Please sign in to comment.