fix(markdown): support the syntax for line breaks inside table cells
This commit is contained in:
parent
4020ad70b6
commit
842e3e432c
1 changed files with 13 additions and 0 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue