diff --git a/src/parser/document.rs b/src/parser/document.rs index ba8c69d..99eb460 100644 --- a/src/parser/document.rs +++ b/src/parser/document.rs @@ -113,9 +113,6 @@ fn section<'r, 's>(context: Context<'r, 's>, input: &'s str) -> Res<&'s str, Sec |(children, _exit_contents)| !children.is_empty(), )(input)?; - // Check if a parent exit matcher is causing the exit - exit_matcher_parser(context, remaining)?; - let (remaining, _trailing_ws) = maybe_consume_trailing_whitespace(context, remaining)?; let source = get_consumed(input, remaining);