Consume line break at the end of paragraph.
This commit is contained in:
parent
707eac5bf8
commit
68156f3667
@ -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 }))
|
||||
|
Loading…
x
Reference in New Issue
Block a user