The current problem is plain_list_item_end is not taking into account depth.

This commit is contained in:
Tom Alexander
2023-03-31 13:08:53 -04:00
parent 68156f3667
commit 2b0e88dc01
2 changed files with 9 additions and 5 deletions

View File

@@ -97,8 +97,8 @@ fn plain_list_item_end<'r, 's>(context: Context<'r, 's>, input: &'s str) -> Res<
let plain_list_item_matcher = parser_with_context!(plain_list_item)(context);
let line_indented_lte_matcher = parser_with_context!(line_indented_lte)(context);
alt((
recognize(tuple((line_ending, plain_list_item_matcher))),
recognize(tuple((line_ending, line_indented_lte_matcher))),
recognize(plain_list_item_matcher),
recognize(line_indented_lte_matcher),
eof,
))(input)
}