Regurgitate seems to have made all text a paragraph.
This commit is contained in:
@@ -12,6 +12,7 @@ use crate::parser::parser_context::ContextElement;
|
||||
use crate::parser::parser_context::ExitMatcherNode;
|
||||
use crate::parser::util::exit_matcher_parser;
|
||||
use crate::parser::util::get_consumed;
|
||||
use crate::parser::util::regurgitate;
|
||||
use crate::parser::util::start_of_line;
|
||||
use nom::branch::alt;
|
||||
use nom::bytes::complete::tag;
|
||||
@@ -62,6 +63,7 @@ pub fn plain_list_item<'r, 's>(
|
||||
let (remaining, (bull, _ws)) = tuple((bullet, space0))(remaining)?;
|
||||
let (remaining, (contents, _exit_contents)) =
|
||||
many_till(element_matcher, exit_matcher)(remaining)?;
|
||||
let remaining = regurgitate(input, remaining);
|
||||
let source = get_consumed(input, remaining);
|
||||
|
||||
Ok((
|
||||
|
||||
Reference in New Issue
Block a user