From 4e33aaa55cb3d0f70f3e35a680d70b0b3b53f0a2 Mon Sep 17 00:00:00 2001 From: Nils Koch Date: Mon, 24 Mar 2025 12:57:06 +0000 Subject: [PATCH] markdown_preview: Fix preview not rendering bullet points beginning with HTML (#27018) Closes #26631 Release Notes: - Fixed markdown preview not rendering bullet points beginning with HTML Before: before After: after Note: I thought it would make sense to return `true` in `is_text_like` for `Event::InlineMath` and `Event::DisplayMath` as well, but it looks like rendering inline math is not supported at all at the moment: https://github.com/zed-industries/zed/blob/4402e033a47db8ab6bf05623a9f111dc7b44cbd5/crates/markdown/src/parser.rs#L108 --- crates/markdown_preview/src/markdown_parser.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/markdown_preview/src/markdown_parser.rs b/crates/markdown_preview/src/markdown_parser.rs index 23ca9c2015..805916eac8 100644 --- a/crates/markdown_preview/src/markdown_parser.rs +++ b/crates/markdown_preview/src/markdown_parser.rs @@ -100,6 +100,7 @@ impl<'a> MarkdownParser<'a> { // Represent an inline code block | Event::Code(_) | Event::Html(_) + | Event::InlineHtml(_) | Event::FootnoteReference(_) | Event::Start(Tag::Link { .. }) | Event::Start(Tag::Emphasis)