From 9c832053d42941dd93de6c60603e19472aa436f7 Mon Sep 17 00:00:00 2001 From: Tom Alexander Date: Mon, 10 Apr 2023 12:08:03 -0400 Subject: [PATCH] Remove parent exit matcher check from section. This was poorly thought out and causing exit due to the no exit error. --- src/parser/document.rs | 3 --- 1 file changed, 3 deletions(-) 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);