Skip to content

Commit 8884008

Browse files
authored
Merge pull request #2381 from ehuss/update-pulldown-cmark
Update pulldown-cmark to 0.11
2 parents 3d6caa5 + af3012b commit 8884008

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

Cargo.lock

Lines changed: 4 additions & 4 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
@@ -27,7 +27,7 @@ handlebars = "5.0"
2727
log = "0.4.17"
2828
memchr = "2.5.0"
2929
opener = "0.7.0"
30-
pulldown-cmark = { version = "0.10.0", default-features = false, features = ["html"] }
30+
pulldown-cmark = { version = "0.11.0", default-features = false, features = ["html"] }
3131
regex = "1.8.1"
3232
serde = { version = "1.0.163", features = ["derive"] }
3333
serde_json = "1.0.96"

src/renderer/html_handlebars/search.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,10 @@ fn render_item(
193193
body.push(' ');
194194
}
195195
}
196-
Event::Text(text) | Event::Code(text) => {
196+
Event::Text(text)
197+
| Event::Code(text)
198+
| Event::InlineMath(text)
199+
| Event::DisplayMath(text) => {
197200
if in_heading {
198201
heading.push_str(&text);
199202
} else {

0 commit comments

Comments
 (0)