Skip to content

Commit 91f04bc

Browse files
Roms1383ehuss
authored andcommitted
Upgrade pulldown-cmark to 0.13.0
1 parent cf7762f commit 91f04bc

File tree

4 files changed

+22
-26
lines changed

4 files changed

+22
-26
lines changed

Cargo.lock

Lines changed: 11 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ notify-debouncer-mini = "0.6.0"
4848
opener = "0.8.2"
4949
pathdiff = "0.2.3"
5050
pretty_assertions = "1.4.1"
51-
pulldown-cmark = { version = "0.10.3", default-features = false, features = ["html"] } # Do not update, part of the public api.
51+
pulldown-cmark = { version = "0.13.0", default-features = false, features = ["html"] } # Do not update, part of the public api.
5252
regex = "1.11.1"
5353
select = "0.6.1"
5454
semver = "1.0.26"

crates/mdbook-html/src/html_handlebars/search.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,13 @@ fn render_item(
200200
// blocks, and worse case you have some noise in the index.
201201
body.push_str(&clean_html(&html));
202202
}
203+
Event::InlineMath(text) | Event::DisplayMath(text) => {
204+
if in_heading {
205+
heading.push_str(&text);
206+
} else {
207+
body.push_str(&text);
208+
}
209+
}
203210
Event::Start(_) | Event::End(_) | Event::Rule | Event::SoftBreak | Event::HardBreak => {
204211
// Insert spaces where HTML output would usually separate text
205212
// to ensure words don't get merged together

examples/remove-emphasis/mdbook-remove-emphasis/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ edition.workspace = true
55

66
[dependencies]
77
mdbook-preprocessor.workspace = true
8-
pulldown-cmark = { version = "0.12.2", default-features = false }
9-
pulldown-cmark-to-cmark = "18.0.0"
10-
serde_json = "1.0.132"
8+
pulldown-cmark = { workspace = true, default-features = false }
9+
pulldown-cmark-to-cmark = "21.0.0"
10+
serde_json.workspace = true
1111

1212
[[bin]]
1313
name = "mdbook-remove-emphasis"

0 commit comments

Comments
 (0)