Identified the problem.

The issue is plain text is eating the line break so paragraph is failing since it expects a line break at the end.
This commit is contained in:
Tom Alexander
2023-03-27 18:08:17 -04:00
parent e1fbe36297
commit 028946ec90
8 changed files with 31 additions and 6 deletions

View File

@@ -83,8 +83,7 @@ pub fn document(input: &str) -> Res<&str, Document> {
let section_matcher = parser_with_context!(section)(&document_context);
let heading_matcher = parser_with_context!(heading)(&document_context);
let (remaining, zeroth_section) = opt(section_matcher)(input)?;
// let (remaining, children) = many0(heading_matcher)(remaining)?;
let children = Vec::new();
let (remaining, children) = many0(heading_matcher)(remaining)?;
let source = get_consumed(input, remaining);
Ok((
remaining,