diff --git a/org_mode_samples/element_container_priority/README.org b/org_mode_samples/element_container_priority/README.org index 24c3f20..5bda0b1 100644 --- a/org_mode_samples/element_container_priority/README.org +++ b/org_mode_samples/element_container_priority/README.org @@ -62,4 +62,27 @@ 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 | First | 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 +#+begin_src org + # A plain list containing a greater block that contains a drawer + 1. foo + ,#+begin_center + :drawername: + + + :end: + ,#+end_center + 2. bar + :drawername: + + + :end: +#+end_src diff --git a/org_mode_samples/element_container_priority/plain_list_drawer.org b/org_mode_samples/element_container_priority/plain_list_drawer.org index 5547ec3..4305389 100644 --- a/org_mode_samples/element_container_priority/plain_list_drawer.org +++ b/org_mode_samples/element_container_priority/plain_list_drawer.org @@ -1,6 +1,6 @@ 1. foo -:drawername: + :drawername: -:end: + :end: 2. bar diff --git a/org_mode_samples/element_container_priority/test_case_1.org b/org_mode_samples/element_container_priority/test_case_1.org new file mode 100644 index 0000000..0347960 --- /dev/null +++ b/org_mode_samples/element_container_priority/test_case_1.org @@ -0,0 +1,13 @@ +# A plain list containing a greater block that contains a drawer +1. foo + #+begin_center + :drawername: + + + :end: + #+end_center +2. bar + :drawername: + + + :end: