From eae261af1cc3eb2a5604457c2665407ee1bedf94 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 1 Nov 2024 10:14:24 +0000 Subject: [PATCH 1/2] Bump pulldown-cmark-to-cmark from 16.0.1 to 18.0.0 Bumps [pulldown-cmark-to-cmark](https://github.com/Byron/pulldown-cmark-to-cmark) from 16.0.1 to 18.0.0. - [Release notes](https://github.com/Byron/pulldown-cmark-to-cmark/releases) - [Changelog](https://github.com/Byron/pulldown-cmark-to-cmark/blob/main/CHANGELOG.md) - [Commits](https://github.com/Byron/pulldown-cmark-to-cmark/compare/v16.0.1...v18.0.0) --- updated-dependencies: - dependency-name: pulldown-cmark-to-cmark dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- Cargo.lock | 4 ++-- i18n-helpers/Cargo.toml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 41646528..4d9b7312 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -966,9 +966,9 @@ checksum = "007d8adb5ddab6f8e3f491ac63566a7d5002cc7ed73901f72057943fa71ae1ae" [[package]] name = "pulldown-cmark-to-cmark" -version = "17.0.0" +version = "18.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "41b27c0d365d60ff3e085007911d73419e5664de48155d558ebfa84d117a5109" +checksum = "1e02b63adcb49f2eb675b1694b413b3e9fedbf549dfe2cc98727ad97a0c30650" dependencies = [ "pulldown-cmark 0.12.2", ] diff --git a/i18n-helpers/Cargo.toml b/i18n-helpers/Cargo.toml index 1e4cdccd..729b1e80 100644 --- a/i18n-helpers/Cargo.toml +++ b/i18n-helpers/Cargo.toml @@ -19,7 +19,7 @@ dateparser = "0.2.1" mdbook.workspace = true polib.workspace = true pulldown-cmark = { version = "0.12.2", default-features = false, features = ["html"] } -pulldown-cmark-to-cmark = "17.0.0" +pulldown-cmark-to-cmark = "18.0.0" regex = "1.11" semver = "1.0.23" serde_json.workspace = true From f4d0525174abe30f7e7e6ed22ee98ed97ce0d38c Mon Sep 17 00:00:00 2001 From: Darkhan Kubigenov Date: Fri, 1 Nov 2024 23:55:53 +0000 Subject: [PATCH 2/2] Replace field access with function call to is_in_code_block There is a breaking change in the pulldown-cmark-to-cmark which replaced the boolean with the function call. --- i18n-helpers/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/i18n-helpers/src/lib.rs b/i18n-helpers/src/lib.rs index d5258d5e..7d1b3d45 100644 --- a/i18n-helpers/src/lib.rs +++ b/i18n-helpers/src/lib.rs @@ -133,7 +133,7 @@ pub fn extract_events<'a>(text: &'a str, state: Option>) -> Vec<(usize // If we're in a code block, we disable the normal parsing and // return lines of text. This matches the behavior of the // parser in this case. - Some(state) if state.is_in_code_block => text + Some(state) if state.is_in_code_block() => text .split_inclusive('\n') .enumerate() .map(|(idx, line)| (idx + 1, Event::Text(line.into())))