From e3f6dd497aa740b47e81f988c685de3912e7a1fa Mon Sep 17 00:00:00 2001 From: Tom Alexander Date: Sat, 25 Mar 2023 12:01:50 -0400 Subject: [PATCH] Test cases showing headings handling nesting properly. --- src/parser/parser_context.rs | 1 - toy_language.txt | 5 +++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/parser/parser_context.rs b/src/parser/parser_context.rs index cdade556..fd2b4058 100644 --- a/src/parser/parser_context.rs +++ b/src/parser/parser_context.rs @@ -110,7 +110,6 @@ pub enum ContextElement<'r, 's> { ExitMatcherNode(ExitMatcherNode<'r>), Context(&'r str), ListItem(usize), - StartOfParagraph, } #[derive(Debug)] diff --git a/toy_language.txt b/toy_language.txt index 614291fd..ac4a2d64 100644 --- a/toy_language.txt +++ b/toy_language.txt @@ -15,3 +15,8 @@ text* * Heading body of heading + +** Child heading +** Immediate second child heading + +* Second top-level heading