Skip to content

Commit

Permalink
Revert "Merge pull request #2381 from ehuss/update-pulldown-cmark"
Browse files Browse the repository at this point in the history
This reverts commit 8884008,
(#2381) reversing
changes made to 3d6caa5.

The `pulldown_cmark` types are a public API, which I did not realize.
  • Loading branch information
ehuss committed May 17, 2024
1 parent e34f9c6 commit 6593228
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"] }
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 6593228

Please sign in to comment.