diff --git a/src/parser/paragraph.rs b/src/parser/paragraph.rs index 09903b8..764b646 100644 --- a/src/parser/paragraph.rs +++ b/src/parser/paragraph.rs @@ -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(), )(input)?; + let (remaining, _linebreak) = alt((eof, line_ending))(remaining)?; let source = get_consumed(input, remaining); Ok((remaining, Paragraph { source, children }))