on master help sign in
Dependabot/cargo/pulldown cmark 0.9.1 (#1533)
96d4ca5Skyler Hawthorne
Cargo.lock+2−2
@@ -758,9 +758,9 @@ dependencies = [
758
758
759[[package]]
759[[package]]
760name = "pulldown-cmark"
760name = "pulldown-cmark"
761−version = "0.8.0"
761+version = "0.9.1"
762source = "registry+https://github.com/rust-lang/crates.io-index"
762source = "registry+https://github.com/rust-lang/crates.io-index"
763−checksum = "ffade02495f22453cd593159ea2f59827aae7f53fa8323f756799b670881dcf8"
763+checksum = "34f197a544b0c9ab3ae46c359a7ec9cbbb5c7bf97054266fecb7ead794a181d6"
764dependencies = [
764dependencies = [
765 "bitflags",
765 "bitflags",
766 "memchr",
766 "memchr",
helix-term/Cargo.toml+1−1
@@ -46,7 +46,7 @@ log = "0.4"
46fuzzy-matcher = "0.3"
46fuzzy-matcher = "0.3"
47ignore = "0.4"
47ignore = "0.4"
48# markdown doc rendering
48# markdown doc rendering
49−pulldown-cmark = { version = "0.8", default-features = false }
49+pulldown-cmark = { version = "0.9", default-features = false }
50# file type detection
50# file type detection
51content_inspector = "0.2.4"
51content_inspector = "0.2.4"
52
52
helix-term/src/ui/markdown.rs+4−2
@@ -77,7 +77,9 @@ fn parse<'a>(
77 Event::End(tag) => {
77 Event::End(tag) => {
78 tags.pop();
78 tags.pop();
79 match tag {
79 match tag {
80+ Tag::Heading(_, _, _)
81+ | Tag::Paragraph
80− Tag::Heading(_) | Tag::Paragraph | Tag::CodeBlock(CodeBlockKind::Fenced(_)) => {
82+ | Tag::CodeBlock(CodeBlockKind::Fenced(_)) => {
81 // whenever code block or paragraph closes, new line
83 // whenever code block or paragraph closes, new line
82 let spans = std::mem::take(&mut spans);
84 let spans = std::mem::take(&mut spans);
83 if !spans.is_empty() {
85 if !spans.is_empty() {
@@ -158,7 +160,7 @@ fn parse<'a>(
158 lines.push(Spans::from(span));
160 lines.push(Spans::from(span));
159 }
161 }
160 }
162 }
161− } else if let Some(Tag::Heading(_)) = tags.last() {
163+ } else if let Some(Tag::Heading(_, _, _)) = tags.last() {
162 let mut span = to_span(text);
164 let mut span = to_span(text);
163 span.style = heading_style;
165 span.style = heading_style;
164 spans.push(span);
166 spans.push(span);