diff --git a/src/parser/document.rs b/src/parser/document.rs index 133ddb7..79a161c 100644 --- a/src/parser/document.rs +++ b/src/parser/document.rs @@ -104,7 +104,6 @@ fn section<'r, 's>(context: Context<'r, 's>, input: &'s str) -> Res<&'s str, Sec exit_matcher: ChainBehavior::AndParent(Some(§ion_end)), })) .with_additional_node(ContextElement::Context("section")); - not(|i| parser_context.check_exit_matcher(i))(input)?; let element_matcher = parser_with_context!(element)(&parser_context); let exit_matcher = parser_with_context!(exit_matcher_parser)(&parser_context); let (remaining, (children, _exit_contents)) = verify(