Package: mdbook I hope to update pulldown-cmark to 0.13 soon (as part of updating clap)
mdbook needs an update for this, I intend to team upload the attatched debdiff when I update pulldown-cmark.
diff -Nru mdbook-0.4.52+ds/debian/changelog mdbook-0.4.52+ds/debian/changelog --- mdbook-0.4.52+ds/debian/changelog 2025-08-13 12:23:04.000000000 +0000 +++ mdbook-0.4.52+ds/debian/changelog 2025-09-23 12:34:49.000000000 +0000 @@ -1,3 +1,10 @@ +mdbook (0.4.52+ds-3) UNRELEASED; urgency=medium + + * Team upload. + * Add patch to support pulldown-cmark 0.13 + + -- Peter Michael Green <[email protected]> Tue, 23 Sep 2025 12:34:49 +0000 + mdbook (0.4.52+ds-2) unstable; urgency=medium * Team upload. diff -Nru mdbook-0.4.52+ds/debian/control mdbook-0.4.52+ds/debian/control --- mdbook-0.4.52+ds/debian/control 2025-08-13 12:22:04.000000000 +0000 +++ mdbook-0.4.52+ds/debian/control 2025-09-23 12:34:49.000000000 +0000 @@ -25,7 +25,7 @@ librust-once-cell-dev, librust-opener-dev, librust-pathdiff-dev, - librust-pulldown-cmark-dev, + librust-pulldown-cmark-0.13-dev, librust-regex-dev, librust-select-dev, librust-serde-dev, @@ -102,7 +102,7 @@ librust-once-cell-dev, librust-opener-dev, librust-pathdiff-dev, - librust-pulldown-cmark-dev, + librust-pulldown-cmark-0.13-dev, librust-regex-dev, librust-serde-dev, librust-serde+derive-dev, diff -Nru mdbook-0.4.52+ds/debian/patches/pulldown-cmark-0.13.patch mdbook-0.4.52+ds/debian/patches/pulldown-cmark-0.13.patch --- mdbook-0.4.52+ds/debian/patches/pulldown-cmark-0.13.patch 1970-01-01 00:00:00.000000000 +0000 +++ mdbook-0.4.52+ds/debian/patches/pulldown-cmark-0.13.patch 2025-09-23 12:34:49.000000000 +0000 @@ -0,0 +1,43 @@ +This patch is based on the upstream commit described below, adapted for use +in the upstream package by Peter Michael Green. + +commit 91f04bc7bae2fb56ae11e3086553c4fdb0b68da0 +Author: Roms1383 <[email protected]> +Date: Sun Jun 16 10:16:10 2024 +0700 + + Upgrade pulldown-cmark to 0.13.0 + +diff --git a/Cargo.toml b/Cargo.toml +index f027a20a..69af69a8 100644 +--- a/Cargo.toml ++++ b/Cargo.toml +@@ -51,1 +51,1 @@ +-pulldown-cmark = { version = "0.10.0", default-features = false, features = ["html"] } # Do not update, part of the public api. ++pulldown-cmark = { version = "0.13.0", default-features = false, features = ["html"] } # Do not update, part of the public api. +diff --git a/examples/remove-emphasis/mdbook-remove-emphasis/Cargo.toml b/examples/remove-emphasis/mdbook-remove-emphasis/Cargo.toml +index 1b55e291..8b2edd03 100644 +--- a/examples/remove-emphasis/mdbook-remove-emphasis/Cargo.toml ++++ b/examples/remove-emphasis/mdbook-remove-emphasis/Cargo.toml +@@ -5,2 +5,2 @@ +-pulldown-cmark = { version = "0.12.2", default-features = false } +-pulldown-cmark-to-cmark = "18.0.0" ++pulldown-cmark = { workspace = true, default-features = false } ++pulldown-cmark-to-cmark = "21.0.0" +diff --git a/src/renderer/html_handlebars/search.rs b/src/renderer/html_handlebars/search.rs +index 0c067905..b14c9c67 100644 +--- a/src/renderer/html_handlebars/search.rs ++++ b/src/renderer/html_handlebars/search.rs +@@ -200,6 +200,13 @@ fn render_item( + // blocks, and worse case you have some noise in the index. + body.push_str(&clean_html(&html)); + } ++ Event::InlineMath(text) | Event::DisplayMath(text) => { ++ if in_heading { ++ heading.push_str(&text); ++ } else { ++ body.push_str(&text); ++ } ++ } + Event::Start(_) | Event::End(_) | Event::Rule | Event::SoftBreak | Event::HardBreak => { + // Insert spaces where HTML output would usually separate text + // to ensure words don't get merged together diff -Nru mdbook-0.4.52+ds/debian/patches/series mdbook-0.4.52+ds/debian/patches/series --- mdbook-0.4.52+ds/debian/patches/series 2025-07-23 15:23:12.000000000 +0000 +++ mdbook-0.4.52+ds/debian/patches/series 2025-09-23 12:34:49.000000000 +0000 @@ -4,3 +4,4 @@ disable-mathjax.patch remove-excluded.patch disable-example-remove-emphasis.patch +pulldown-cmark-0.13.patch

