The current problem is plain_list_item_end is not taking into account depth.
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user