summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Huss <eric@huss.org>2024-05-16 21:40:10 +0000
committerGitHub <noreply@github.com>2024-05-16 21:40:10 +0000
commit8884008b4d10381316288badd588227da80f5820 (patch)
tree6a9d865d86b5992fc4b7e61d0508db6a618c36fb
parent3d6caa504f883f646eb98869eeb63e59b3fa7aa6 (diff)
parentaf3012b0f230dace01dbee26ded28cc5cb20e3fe (diff)
Merge pull request #2381 from ehuss/update-pulldown-cmark
Update pulldown-cmark to 0.11
-rw-r--r--Cargo.lock8
-rw-r--r--Cargo.toml2
-rw-r--r--src/renderer/html_handlebars/search.rs5
3 files changed, 9 insertions, 6 deletions
diff --git a/Cargo.lock b/Cargo.lock
index 5e43d12d..5abe27ca 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1411,9 +1411,9 @@ dependencies = [
[[package]]
name = "pulldown-cmark"
-version = "0.10.3"
+version = "0.11.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "76979bea66e7875e7509c4ec5300112b316af87fa7a252ca91c448b32dfe3993"
+checksum = "8746739f11d39ce5ad5c2520a9b75285310dbfe78c541ccf832d38615765aec0"
dependencies = [
"bitflags 2.5.0",
"memchr",
@@ -1423,9 +1423,9 @@ dependencies = [
[[package]]
name = "pulldown-cmark-escape"
-version = "0.10.1"
+version = "0.11.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "bd348ff538bc9caeda7ee8cad2d1d48236a1f443c1fa3913c6a02fe0043b1dd3"
+checksum = "007d8adb5ddab6f8e3f491ac63566a7d5002cc7ed73901f72057943fa71ae1ae"
[[package]]
name = "quote"
diff --git a/Cargo.toml b/Cargo.toml
index a8646186..d565adc5 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -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"
diff --git a/src/renderer/html_handlebars/search.rs b/src/renderer/html_handlebars/search.rs
index 1144c9f5..968894bd 100644
--- a/src/renderer/html_handlebars/search.rs
+++ b/src/renderer/html_handlebars/search.rs
@@ -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 {