Consume line break at the end of paragraph.

This commit is contained in:
Tom Alexander 2023-03-31 11:42:04 -04:00
parent 707eac5bf8
commit 68156f3667
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE

View File

@ -36,6 +36,7 @@ pub fn paragraph<'r, 's>(context: Context<'r, 's>, input: &'s str) -> Res<&'s st
|(children, _exit_contents)| !children.is_empty(), |(children, _exit_contents)| !children.is_empty(),
)(input)?; )(input)?;
let (remaining, _linebreak) = alt((eof, line_ending))(remaining)?;
let source = get_consumed(input, remaining); let source = get_consumed(input, remaining);
Ok((remaining, Paragraph { source, children })) Ok((remaining, Paragraph { source, children }))