diff --git a/src/parser/table.rs b/src/parser/table.rs index 92d1649..d475398 100644 --- a/src/parser/table.rs +++ b/src/parser/table.rs @@ -117,7 +117,7 @@ pub fn org_mode_table_cell<'r, 's>( let exit_matcher = parser_with_context!(exit_matcher_parser)(&parser_context); let (remaining, (children, _exit_contents)) = verify( many_till(minimal_set_object_matcher, exit_matcher), - |(children, _exit_contents)| !children.is_empty(), + |(children, exit_contents)| !children.is_empty() || *exit_contents == "|", )(input)?; @@ -129,5 +129,5 @@ fn org_mode_table_cell_end<'r, 's>( context: Context<'r, 's>, input: &'s str, ) -> Res<&'s str, &'s str> { - recognize(tuple((space0, alt((tag("|"), peek(line_ending))))))(input) + recognize(tuple((space0, alt((tag("|"), line_ending)))))(input) }