Revert "Merge pull request #2381 from ehuss/update-pulldown-cmark"
This reverts commit8884008b4d, (https://github.com/rust-lang/mdBook/pull/2381) reversing changes made to3d6caa504f. The `pulldown_cmark` types are a public API, which I did not realize.
This commit is contained in:
parent
e34f9c6408
commit
65932289f7
3 changed files with 6 additions and 9 deletions
8
Cargo.lock
generated
8
Cargo.lock
generated
|
|
@ -1411,9 +1411,9 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "pulldown-cmark"
|
||||
version = "0.11.0"
|
||||
version = "0.10.3"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "8746739f11d39ce5ad5c2520a9b75285310dbfe78c541ccf832d38615765aec0"
|
||||
checksum = "76979bea66e7875e7509c4ec5300112b316af87fa7a252ca91c448b32dfe3993"
|
||||
dependencies = [
|
||||
"bitflags 2.5.0",
|
||||
"memchr",
|
||||
|
|
@ -1423,9 +1423,9 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "pulldown-cmark-escape"
|
||||
version = "0.11.0"
|
||||
version = "0.10.1"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "007d8adb5ddab6f8e3f491ac63566a7d5002cc7ed73901f72057943fa71ae1ae"
|
||||
checksum = "bd348ff538bc9caeda7ee8cad2d1d48236a1f443c1fa3913c6a02fe0043b1dd3"
|
||||
|
||||
[[package]]
|
||||
name = "quote"
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue