compare_properties table cell.

This commit is contained in:
Tom Alexander
2023-10-10 00:11:05 -04:00
parent cf257443b0
commit 2215c32e57
2 changed files with 25 additions and 7 deletions

View File

@@ -176,12 +176,13 @@ fn org_mode_table_cell<'b, 'g, 'r, 's>(
let table_cell_set_object_matcher =
parser_with_context!(table_cell_set_object)(&parser_context);
let exit_matcher = parser_with_context!(exit_matcher_parser)(&parser_context);
let (remaining, _) = space0(input)?;
let (remaining, (children, _exit_contents)) = verify(
many_till(table_cell_set_object_matcher, exit_matcher),
|(children, exit_contents)| {
!children.is_empty() || Into::<&str>::into(exit_contents).ends_with("|")
},
)(input)?;
)(remaining)?;
let (remaining, _tail) = org_mode_table_cell_end(&parser_context, remaining)?;