Require either eof or whitespace to line ending for valueless items.
This commit is contained in:
parent
f0a7493a89
commit
129228c5c5
@ -188,9 +188,9 @@ fn plain_list_item<'b, 'g, 'r, 's>(
|
||||
match maybe_contentless_item {
|
||||
Ok((_rem, _ws)) => {
|
||||
let (remaining, _trailing_ws) = if context.should_consume_trailing_whitespace() {
|
||||
recognize(many0(blank_line))(remaining)?
|
||||
recognize(alt((recognize(many1(blank_line)), eof)))(remaining)?
|
||||
} else {
|
||||
recognize(opt(blank_line))(remaining)?
|
||||
recognize(alt((blank_line, eof)))(remaining)?
|
||||
};
|
||||
let source = get_consumed(input, remaining);
|
||||
return Ok((
|
||||
|
Loading…
Reference in New Issue
Block a user