Add footnote definition first tests.

This commit is contained in:
Tom Alexander 2023-04-16 18:01:47 -04:00
parent 4c4d79a665
commit 16218ec040
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE
2 changed files with 10 additions and 2 deletions

View File

@ -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 | | - | |

View File

@ -0,0 +1,6 @@
[fn:1] footnote.
#+BEGIN: foo :hlines 1 :id global
#+END:
Is this still in the footnote?