From bfea828e6259a54415b1f79afc0f4738df480f83 Mon Sep 17 00:00:00 2001 From: Tom Alexander Date: Fri, 25 Aug 2023 05:20:13 -0400 Subject: [PATCH] Update detect_plain_list to support line breaks. --- src/parser/plain_list.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/parser/plain_list.rs b/src/parser/plain_list.rs index 3c70cd6..8d8ba36 100644 --- a/src/parser/plain_list.rs +++ b/src/parser/plain_list.rs @@ -37,9 +37,13 @@ pub fn detect_plain_list<'r, 's>( _context: Context<'r, 's>, input: OrgSource<'s>, ) -> Res, ()> { - // TODO: Add support for plain list items that do not have content on the first line. if verify( - tuple((start_of_line, space0, bullet, space1)), + tuple(( + start_of_line, + space0, + bullet, + alt((space1, line_ending, eof)), + )), |(_start, indent, bull, _after_whitespace)| { Into::<&str>::into(bull) != "*" || indent.len() > 0 },