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...
Empty lines separate paragraphs.
Right?
They do!
this one is cheating a little as tags are ALWAYS printed right aligned to a given column number...
unordered list item 1
unordered list item 2 - with inline
markup
ordered sublist item 1
ordered sublist item 1
ordered sublist item 2
ordered sublist item 3
ordered sublist item 2
unordered list item 3 - and a link and some lines of text
and another subitem
echo with a block
and another one with a table
a | b | c |
---|---|---|
1 | 2 | 3 |
and text with an empty line in between as well!
unordered list item 4
emphasis and a hard line break
see?
.emphasis with dot border chars.
emphasis with a slash/inside
emphasis followed by raw text with slash /
->/not an emphasis/<-
links with slashes do not become emphasis: https://somelinkshouldntrenderaccidentalemphasis.com/ emphasis
underlined bold verbatim
code
strikethrough
bold string with an *asterisk inside
links
regular link https://example.com link without description
regular link example.com link with description
regular link to a file (image)
regular link to a file (video)
regular link to http (image)
regular link to https (image)
auto link, i.e. not inside \[[square brackets]\]
https://www.example.com
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
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
This is verse
or even a totally custom kind of block crazy ain't it?
code
wrapped text gets joined
either this
or that
foo.
either this
or that
foo.
code
--- as code plus dashbullet 1
sub bullet
italics
Text italics
just a space as title...
Foo paragraph.
Bar paragraph
further references to the same footnote should not 1 render duplicates in the footnote list
inline footnotes are also supported via 2.
footnotes can contain markup
and other elements
like blocks
other non-plain
and tables
1 | a |
2 | b |
3 | c |
another unused footnote
another unused footnote
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.
the inline footnote definition