Motivation

To validate the parser we'll try printing the AST back to org-mode source - if that works we can be kind of sure that the parsing worked. At least I hope so - I would like to get around writing tests for the individual parsing functions...

Paragraphs

Empty lines separate paragraphs.

Right?

They do!

Headlines with TODO status, priority & tags

Headline with todo status & priority

Headline with TODO status

Headline with tags & priority

this one is cheating a little as tags are ALWAYS printed right aligned to a given column number...

Lists

Inline

Captions

Anything can be captioned. Also captions are not real, correct captions but just a paragraph below the element (bothe wrapped into a div)

echo "i have a caption!"

captioned soure block

captioned link (video in this case)

note that only that one line is captioned, not the whole paragraph

also, normal text lines can't be captioned

blocks

echo a bash source block

bleck!

a source block without a language
and a second line
and a third one
an example block
with multiple lines

Mongodb is very webscale

and quote blocks can contain multiple paragraphs

issues from goorgeous (free test cases, yay!)

#29: Support verse block

This is verse

or even a totally custom kind of block crazy ain't it?

#47: Consecutive code wrapped text gets joined

either this or that foo. either this or that foo.

#50: Linebreaks in lists are preserved

  1. same goes for ordered lists

  2. foo

#68: Quote block with inline markup

this is markup!

#77: Recognize code--- as code plus dash

#75: Not parsing nested lists correctly

#78: Emphasis at beginning of line

italics

Text italics

#82: Crash on empty headline

just a space as title...

#84: Paragraphs that are not followed by an empty line are not parsed correctly

Foo

Foo paragraph.

Bar

Bar paragraph

Footnotes

Footnotes

1

https://www.example.com

  • footnotes can contain markup

  • and other elements

    • like blocks

      other non-plain
    • and tables

      1a
      2b
      3c
4

another unused footnote

5

another unused footnote

6

Footnotes break after two consecutive empty lines - just like paragraphs - see https://orgmode.org/worg/dev/org-syntax.html. This shouldn't happen when the definition line and the line after that are empty.

2

the inline footnote definition