Skip to content

Commit

Permalink
Merge pull request #2386 from ehuss/revert-pulldown-cmark
Browse files Browse the repository at this point in the history
Revert update to pulldown-cmark 0.11
  • Loading branch information
ehuss authored May 17, 2024
2 parents e34f9c6 + 2bdb586 commit a5d4d1e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 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.11.0", default-features = false, features = ["html"] }
pulldown-cmark = { version = "0.10.0", default-features = false, features = ["html"] } # Do not update, part of the public api.
regex = "1.8.1"
serde = { version = "1.0.163", features = ["derive"] }
serde_json = "1.0.96"
Expand Down
5 changes: 1 addition & 4 deletions src/renderer/html_handlebars/search.rs
Original file line number Diff line number Diff line change
Expand Up @@ -193,10 +193,7 @@ fn render_item(
body.push(' ');
}
}
Event::Text(text)
| Event::Code(text)
| Event::InlineMath(text)
| Event::DisplayMath(text) => {
Event::Text(text) | Event::Code(text) => {
if in_heading {
heading.push_str(&text);
} else {
Expand Down

0 comments on commit a5d4d1e

Please sign in to comment.