From 89040c51a69dcbff6676cb7d2dfe34817be07a63 Mon Sep 17 00:00:00 2001 From: Tom Alexander Date: Mon, 17 Apr 2023 19:45:50 -0400 Subject: [PATCH] Update test case 1. --- .../element_container_priority/README.org | 23 ++++++------------- .../test_case_1.org | 10 ++------ 2 files changed, 9 insertions(+), 24 deletions(-) diff --git a/org_mode_samples/element_container_priority/README.org b/org_mode_samples/element_container_priority/README.org index 5bda0b1..ee016aa 100644 --- a/org_mode_samples/element_container_priority/README.org +++ b/org_mode_samples/element_container_priority/README.org @@ -62,27 +62,18 @@ This test interleaves the opening and closing of each element container to see w | Drawer | Section | First | First | First | First | First | | Dynamic Block | Section | First | First | First | First | First | | Footnote Definition | Section | First | First | First | - | - | -| Plain List | Section | Second | Second | Second | - | First | +| Plain List | Section | Second | Second | Second | - | First | * Possible solutions -** Create tiers of exit matchers -- Document level (sections/headlines) -- Greater Block / Dynamic Block -- Remaining element containers -- Object containers -*** What if we ignore exit matchers of lower tiers -**** Test Case 1 +** Greater blocks, drawers, and dynamic blocks disable plain list exit matcher +*** Test Case 1 #+begin_src org - # A plain list containing a greater block that contains a drawer 1. foo ,#+begin_center - :drawername: + 2. bar - :end: + baz ,#+end_center - 2. bar - :drawername: - - - :end: #+end_src +** Parse out headlines first +Then go through elements parsing them in-order diff --git a/org_mode_samples/element_container_priority/test_case_1.org b/org_mode_samples/element_container_priority/test_case_1.org index 0347960..76c2a7e 100644 --- a/org_mode_samples/element_container_priority/test_case_1.org +++ b/org_mode_samples/element_container_priority/test_case_1.org @@ -1,13 +1,7 @@ -# A plain list containing a greater block that contains a drawer 1. foo #+begin_center - :drawername: + 2. bar - :end: + baz #+end_center -2. bar - :drawername: - - - :end: