From af3012b0f230dace01dbee26ded28cc5cb20e3fe Mon Sep 17 00:00:00 2001 From: Eric Huss Date: Thu, 16 May 2024 14:17:19 -0700 Subject: [PATCH] Update pulldown-cmark to 0.11 --- Cargo.lock | 8 ++++---- Cargo.toml | 2 +- src/renderer/html_handlebars/search.rs | 5 ++++- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 5e43d12d77..5abe27ca63 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 a8646186cc..d565adc556 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 1144c9f588..968894bd9d 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 {