Skip to content

Commit 95b5631

Browse files
Roms1383ehuss
authored andcommitted
Upgrade pulldown-cmark to 0.13.0
1 parent cf7762f commit 95b5631

File tree

3 files changed

+18
-11
lines changed

3 files changed

+18
-11
lines changed

Cargo.lock

Lines changed: 10 additions & 10 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

0 commit comments

Comments
 (0)