fixup! block: fix parsing end of list

This commit is contained in:
Noah Hellman 2023-01-30 22:41:38 +01:00
parent 5d9f90342c
commit f9655dfa9b

View file

@ -805,12 +805,10 @@ impl Kind {
.. ..
} => { } => {
let spaces = line.chars().take_while(|c| c.is_whitespace()).count(); let spaces = line.chars().take_while(|c| c.is_whitespace()).count();
if matches!(next, Self::Atom(Blankline)) { let para = !*last_blankline && matches!(next, Self::Paragraph);
*last_blankline = true; let blankline = matches!(next, Self::Atom(Blankline));
true *last_blankline = blankline;
} else { blankline || spaces > *indent || para
spaces > *indent || (!*last_blankline && matches!(next, Self::Paragraph))
}
} }
Self::Definition { indent, footnote } => { Self::Definition { indent, footnote } => {
if *footnote { if *footnote {