From 16218ec04032d2fbc7778e8d650bd7fd91de1b96 Mon Sep 17 00:00:00 2001 From: Tom Alexander Date: Sun, 16 Apr 2023 18:01:47 -0400 Subject: [PATCH] Add footnote definition first tests. --- org_mode_samples/element_container_priority/README.org | 6 ++++-- .../footnote_definition_dynamic_block.org | 6 ++++++ 2 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 org_mode_samples/element_container_priority/footnote_definition_dynamic_block.org diff --git a/org_mode_samples/element_container_priority/README.org b/org_mode_samples/element_container_priority/README.org index 8bf57e0..78ca4b3 100644 --- a/org_mode_samples/element_container_priority/README.org +++ b/org_mode_samples/element_container_priority/README.org @@ -1,5 +1,6 @@ * What are the possible element containers # Omitting tables because they only contain objects +# Omitting paragraphs because they only contain objects # Omitting inline tasks because they are syntactically the same as heading+section just with a deep headline level. # Omitting property drawers because they are syntactically the same as drawers. ** Sections @@ -53,11 +54,12 @@ 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. +# Footnote definition and plain list have the same end condition of two blank lines so they are untestable. | | Section | Greater Block | Drawer | Dynamic Block | Footnote Definition | Plain List | |---------------------+---------+---------------+---------+---------------+---------------------+------------| | Section | - | Section | Section | Section | Section | Section | | Greater Block | Section | First | First | First | First | First | | Drawer | Section | First | First | First | First | First | | Dynamic Block | Section | First | First | First | First | First | -| Footnote Definition | Section | First | First | | | | -| Plain List | Section | Second | First | | | | +| Footnote Definition | Section | First | First | First | - | - | +| Plain List | Section | Second | First | | - | | diff --git a/org_mode_samples/element_container_priority/footnote_definition_dynamic_block.org b/org_mode_samples/element_container_priority/footnote_definition_dynamic_block.org new file mode 100644 index 0000000..66a1812 --- /dev/null +++ b/org_mode_samples/element_container_priority/footnote_definition_dynamic_block.org @@ -0,0 +1,6 @@ +[fn:1] footnote. +#+BEGIN: foo :hlines 1 :id global + + +#+END: +Is this still in the footnote?