From 68156f3667c3241210a741f837907e31e656da37 Mon Sep 17 00:00:00 2001 From: Tom Alexander Date: Fri, 31 Mar 2023 11:42:04 -0400 Subject: [PATCH] Consume line break at the end of paragraph. --- src/parser/paragraph.rs | 1 + 1 file changed, 1 insertion(+) 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 }))