Regurgitate seems to have made all text a paragraph.

This commit is contained in:
Tom Alexander
2023-03-27 19:12:20 -04:00
parent 3643f91bac
commit 9545990b52
2 changed files with 37 additions and 0 deletions

View File

@@ -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((