Fix the line break consumption issue.

This leaves us with an issue of lists becoming needlessly nested.
This commit is contained in:
Tom Alexander 2023-03-27 18:10:14 -04:00
parent 028946ec90
commit 2c7a559869
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE

View File

@ -41,7 +41,7 @@ fn paragraph_end<'r, 's>(context: Context<'r, 's>, input: &'s str) -> Res<&'s st
let non_paragraph_element_matcher = parser_with_context!(non_paragraph_element)(context); let non_paragraph_element_matcher = parser_with_context!(non_paragraph_element)(context);
alt(( alt((
recognize(tuple((line_ending, many1(blank_line)))), recognize(tuple((line_ending, many1(blank_line)))),
recognize(non_paragraph_element_matcher), recognize(tuple((line_ending, non_paragraph_element_matcher))),
eof, eof,
))(input) ))(input)
} }