From 842e3e432c9ee28597e8c820ddb118abc5c8a693 Mon Sep 17 00:00:00 2001 From: laniakea64 Date: Sat, 14 Mar 2026 14:58:21 -0400 Subject: [PATCH] fix(markdown): support the syntax for line breaks inside table cells --- widget/src/markdown.rs | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/widget/src/markdown.rs b/widget/src/markdown.rs index b774e0a8..c778dbcb 100644 --- a/widget/src/markdown.rs +++ b/widget/src/markdown.rs @@ -1008,6 +1008,19 @@ fn parse_with<'a>( }); None } + pulldown_cmark::Event::InlineHtml(h) + if !metadata && h.eq_ignore_ascii_case("
") => + { + spans.push(Span::Standard { + text: String::from("\n"), + strikethrough, + strong, + emphasis, + link: link.clone(), + code: false, + }); + None + } pulldown_cmark::Event::Rule => { produce(state.borrow_mut(), &mut stack, Item::Rule, source) }