Going to try flatly defined functions and wrap them.
This commit is contained in:
@@ -24,7 +24,6 @@ use nom::sequence::tuple;
|
||||
use nom::IResult;
|
||||
|
||||
use super::nom_context::NomContext;
|
||||
use super::text_element_parser::text_element;
|
||||
|
||||
pub type Res<T, U> = IResult<T, U, VerboseError<T>>;
|
||||
|
||||
@@ -130,7 +129,8 @@ pub fn link_end(input: &str) -> Res<&str, TextElement> {
|
||||
|
||||
pub fn paragraph(input: &str) -> Res<&str, (Vec<TextElement>, &str)> {
|
||||
let initial_context = NomContext::new(¶graph_end);
|
||||
many_till(text_element(initial_context), paragraph_end)(input)
|
||||
// many_till(text_element(initial_context), paragraph_end)(input)
|
||||
todo!()
|
||||
}
|
||||
|
||||
fn paragraph_end(input: &str) -> Res<&str, &str> {
|
||||
|
||||
Reference in New Issue
Block a user