Skip to content

Commit 6593228

Browse files
committed
Revert "Merge pull request #2381 from ehuss/update-pulldown-cmark"
This reverts commit 8884008, (#2381) reversing changes made to 3d6caa5. The `pulldown_cmark` types are a public API, which I did not realize.
1 parent e34f9c6 commit 6593228

File tree

3 files changed

+6
-9
lines changed

3 files changed

+6
-9
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.11.0", default-features = false, features = ["html"] }
30+
pulldown-cmark = { version = "0.10.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: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -193,10 +193,7 @@ fn render_item(
193193
body.push(' ');
194194
}
195195
}
196-
Event::Text(text)
197-
| Event::Code(text)
198-
| Event::InlineMath(text)
199-
| Event::DisplayMath(text) => {
196+
Event::Text(text) | Event::Code(text) => {
200197
if in_heading {
201198
heading.push_str(&text);
202199
} else {

0 commit comments

Comments
 (0)