diff --git a/Cargo.lock b/Cargo.lock index c7aae2d70d..df01cd74fe 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1229,9 +1229,9 @@ dependencies = [ [[package]] name = "pulldown-cmark-to-cmark" -version = "6.0.4" +version = "7.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1f5925e2c68fb0c3c189cd0f6bbcf1e16402a070d4fcaf7600e239e8302dd0e8" +checksum = "2d85e607de0249c2b5041e38de8684b00b62a64edee60bfcd85c153031a9d658" dependencies = [ "pulldown-cmark", ] diff --git a/crates/ide/Cargo.toml b/crates/ide/Cargo.toml index 3403b5a631..0f3311cb71 100644 --- a/crates/ide/Cargo.toml +++ b/crates/ide/Cargo.toml @@ -16,7 +16,7 @@ itertools = "0.10.0" tracing = "0.1" rustc-hash = "1.1.0" oorandom = "11.1.2" -pulldown-cmark-to-cmark = "6.0.0" +pulldown-cmark-to-cmark = "7.1" pulldown-cmark = { version = "0.8.0", default-features = false } url = "2.1.1" dot = "0.1.4" diff --git a/crates/ide/src/doc_links.rs b/crates/ide/src/doc_links.rs index 617f63d358..df25d80178 100644 --- a/crates/ide/src/doc_links.rs +++ b/crates/ide/src/doc_links.rs @@ -62,7 +62,7 @@ pub(crate) fn rewrite_links(db: &RootDatabase, markdown: &str, definition: Defin doc, &mut out, None, - CMarkOptions { code_block_backticks: 3, ..Default::default() }, + CMarkOptions { code_block_token_count: 3, ..Default::default() }, ) .ok(); out @@ -98,7 +98,7 @@ pub(crate) fn remove_links(markdown: &str) -> String { doc, &mut out, None, - CMarkOptions { code_block_backticks: 3, ..Default::default() }, + CMarkOptions { code_block_token_count: 3, ..Default::default() }, ) .ok(); out