We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f19bb02 commit 5e7faecCopy full SHA for 5e7faec
widget/src/markdown.rs
@@ -305,12 +305,21 @@ pub fn parse(markdown: &str) -> impl Iterator<Item = Item> + '_ {
305
None
306
}
307
pulldown_cmark::Tag::List(first_item) if !metadata && !table => {
308
+ let prev = if spans.is_empty() {
309
+ None
310
+ } else {
311
+ produce(
312
+ &mut lists,
313
+ Item::Paragraph(Text::new(spans.drain(..).collect())),
314
+ )
315
+ };
316
+
317
lists.push(List {
318
start: first_item,
319
items: Vec::new(),
320
});
321
- None
322
+ prev
323
324
pulldown_cmark::Tag::Item => {
325
lists
0 commit comments