From 6da7cb2c17f6faae07287db3c7e16aeee810e462 Mon Sep 17 00:00:00 2001 From: Tom Alexander Date: Sun, 16 Apr 2023 17:18:41 -0400 Subject: [PATCH] Add greater block first tests. --- .../element_container_priority/README.org | 16 ++++++++-------- .../greater_block_drawer.org | 4 ++++ .../greater_block_dynamic_block.org | 4 ++++ .../greater_block_footnote_definition.org | 4 ++++ .../greater_block_greater_block.org | 5 +++++ .../greater_block_plain_list.org | 4 ++++ 6 files changed, 29 insertions(+), 8 deletions(-) create mode 100644 org_mode_samples/element_container_priority/greater_block_drawer.org create mode 100644 org_mode_samples/element_container_priority/greater_block_dynamic_block.org create mode 100644 org_mode_samples/element_container_priority/greater_block_footnote_definition.org create mode 100644 org_mode_samples/element_container_priority/greater_block_greater_block.org create mode 100644 org_mode_samples/element_container_priority/greater_block_plain_list.org diff --git a/org_mode_samples/element_container_priority/README.org b/org_mode_samples/element_container_priority/README.org index 14be2a8..f6fc222 100644 --- a/org_mode_samples/element_container_priority/README.org +++ b/org_mode_samples/element_container_priority/README.org @@ -53,11 +53,11 @@ Sections are divided by headlines. * Which container takes priority This test interleaves the opening and closing of each element container to see which element becomes parsed vs gets broken up. The row determines the first opening element and the column determines the second opening element. # Section first and section second tests are identical so I only included section first in the repo. -| | Section | Greater Block | Drawer | Dynamic Block | Footnote Definition | Plain List | -|---------------------+---------+---------------+---------+---------------+---------------------+------------| -| Section | - | Section | Section | Section | Section | Section | -| Greater Block | Section | | | | | | -| Drawer | Section | | | | | | -| Dynamic Block | Section | | | | | | -| Footnote Definition | Section | | | | | | -| Plain List | Section | | | | | | +| | Section | Greater Block | Drawer | Dynamic Block | Footnote Definition | Plain List | +|---------------------+---------+---------------+---------------+---------------+---------------------+---------------| +| Section | - | Section | Section | Section | Section | Section | +| Greater Block | Section | First | Greater Block | Greater Block | Greater Block | Greater Block | +| Drawer | Section | | | | | | +| Dynamic Block | Section | | | | | | +| Footnote Definition | Section | | | | | | +| Plain List | Section | | | | | | diff --git a/org_mode_samples/element_container_priority/greater_block_drawer.org b/org_mode_samples/element_container_priority/greater_block_drawer.org new file mode 100644 index 0000000..579d036 --- /dev/null +++ b/org_mode_samples/element_container_priority/greater_block_drawer.org @@ -0,0 +1,4 @@ +#+begin_center +:drawername: +#+end_center +:end: diff --git a/org_mode_samples/element_container_priority/greater_block_dynamic_block.org b/org_mode_samples/element_container_priority/greater_block_dynamic_block.org new file mode 100644 index 0000000..9eb627a --- /dev/null +++ b/org_mode_samples/element_container_priority/greater_block_dynamic_block.org @@ -0,0 +1,4 @@ +#+begin_center +#+BEGIN: foo :hlines 1 :id global +#+end_center +#+END: diff --git a/org_mode_samples/element_container_priority/greater_block_footnote_definition.org b/org_mode_samples/element_container_priority/greater_block_footnote_definition.org new file mode 100644 index 0000000..992c7d6 --- /dev/null +++ b/org_mode_samples/element_container_priority/greater_block_footnote_definition.org @@ -0,0 +1,4 @@ +#+begin_center +[fn:1] footenote. +#+end_center +Is this still in the footnote? diff --git a/org_mode_samples/element_container_priority/greater_block_greater_block.org b/org_mode_samples/element_container_priority/greater_block_greater_block.org new file mode 100644 index 0000000..258868e --- /dev/null +++ b/org_mode_samples/element_container_priority/greater_block_greater_block.org @@ -0,0 +1,5 @@ +#+begin_center +#+begin_quote +foo +#+end_center +#+end_quote diff --git a/org_mode_samples/element_container_priority/greater_block_plain_list.org b/org_mode_samples/element_container_priority/greater_block_plain_list.org new file mode 100644 index 0000000..4fafe9f --- /dev/null +++ b/org_mode_samples/element_container_priority/greater_block_plain_list.org @@ -0,0 +1,4 @@ +#+begin_center +1. foo +#+end_center +2. bar