Skip to content

Commit

Permalink
Fixes johannhof#43
Browse files Browse the repository at this point in the history
  • Loading branch information
sigaloid authored Oct 24, 2021
1 parent 68ff3f8 commit 9964a38
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/parser/block/unordered_list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,10 @@ pub fn parse_unordered_list(lines: &[&str]) -> Option<(Block, usize)> {
for c in contents {
if is_paragraph || c.len() > 1 {
list_contents.push(ListItem::Paragraph(c));
} else if let Paragraph(content) = c[0].clone() {
list_contents.push(ListItem::Simple(content));
} else if c.len() != 0 {
if let Paragraph(content) = c[0].clone() {
list_contents.push(ListItem::Simple(content));
}
}
}

Expand Down

0 comments on commit 9964a38

Please sign in to comment.