fix(markdown): support the syntax for line breaks inside table cells

This commit is contained in:
laniakea64 2026-03-14 14:58:21 -04:00 committed by Ashley Wulber
parent 4020ad70b6
commit 842e3e432c

View file

@ -1008,6 +1008,19 @@ fn parse_with<'a>(
});
None
}
pulldown_cmark::Event::InlineHtml(h)
if !metadata && h.eq_ignore_ascii_case("<br>") =>
{
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)
}