Skip to content

Commit

Permalink
Merge pull request #2381 from ehuss/update-pulldown-cmark
Browse files Browse the repository at this point in the history
Update pulldown-cmark to 0.11
  • Loading branch information
ehuss authored May 16, 2024
2 parents 3d6caa5 + af3012b commit 8884008
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
8 changes: 4 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ handlebars = "5.0"
log = "0.4.17"
memchr = "2.5.0"
opener = "0.7.0"
pulldown-cmark = { version = "0.10.0", default-features = false, features = ["html"] }
pulldown-cmark = { version = "0.11.0", default-features = false, features = ["html"] }
regex = "1.8.1"
serde = { version = "1.0.163", features = ["derive"] }
serde_json = "1.0.96"
Expand Down
5 changes: 4 additions & 1 deletion src/renderer/html_handlebars/search.rs
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,10 @@ fn render_item(
body.push(' ');
}
}
Event::Text(text) | Event::Code(text) => {
Event::Text(text)
| Event::Code(text)
| Event::InlineMath(text)
| Event::DisplayMath(text) => {
if in_heading {
heading.push_str(&text);
} else {
Expand Down

0 comments on commit 8884008

Please sign in to comment.