organic/org_mode_samples/element_container_priority
2023-04-16 16:55:53 -04:00
..
Makefile Set up an experiment for figuring out exit matcher priority. 2023-04-16 16:48:22 -04:00
README.org Add the first test. 2023-04-16 16:55:53 -04:00
section_greater_block.org Add the first test. 2023-04-16 16:55:53 -04:00

What are the possible element containers

Sections

Sections are divided by headlines.

  Zeroth section
  * First headline
  First section
  ** Child headline
  Child section
  * Second top-level headline
  Second top-level section

Greater blocks

  #+begin_center
  elements
  #+end_center

Drawers

  :drawername:
  elements
  :end:

Dynamic blocks

  * Headline
  #+BEGIN: clocktable :scope subtree :maxlevel 2
  #+CAPTION: Clock summary at [2023-04-16 Sun 16:13]
  | Headline     | Time   |
  |--------------+--------|
  | *Total time* | *0:00* |
  #+END:

Footnote definitions

  [fn:1] A footnote definition.

  [fn:2] A multi-line

  footnote definition.

Plain Lists

  1. foo
     1. bar
  2. baz

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 Greater Block Drawer Dynamic Block Footnote Definition Plain List
Section - Section
Greater Block
Drawer
Dynamic Block
Footnote Definition
Plain List