go-org-orgwiki/org/testdata/blocks.org
Niklas Fasching 905648c34b org: Fix drawer & block
- drawer entries without value were printed as FOO rather than :FOO:
- account for differences between raw & non-raw block:
  raw blocks are not wrapped in a further element, just raw text & line breaks:
  -> the first line has to be indented manually
  non raw blocks do not end in a linebreak newline -> the END_BLOCK line has to
  be indented (rather they end with a manual newline from another element)
2018-12-19 12:21:25 +01:00

1.6 KiB

echo "a bash source block"

function hello {
    echo Hello World!
}

hello
block caption
a source block without a language
an example block with
multiple lines including


empty lines!

it also has multiple parameters

src, example & export blocks treat their content as raw text
/inline/ *markup* is ignored
      and whitespace is honored and not removed
examples like this
are also supported
note that /inline/ *markup* ignored

Mongodb is webscale. (source: mongodb-is-web-scale)

blocks like the quote block parse their content and can contain

  • lists
  • inline markup
  • tables

    foo
    bar
    baz
  • paragraphs

also whitespace is not significant and superfluous whitespace (at the beginning of the line) is removed

  • list item 1 blocks can contain unindented lines that would normally end a list item

    this line is not indented - if it was outside of a block the list item would end
    

    this line is not indented - if it was outside of a block the list item would end

    now we're outside the block again and the following unindented line will be outside of the list item

this unindented line is outside of the list item

  • list item 2

    #+BEGIN_EXAMPLE

    #+END_EXAMPLE

    #+BEGIN_QUOTE

    #+END_QUOTE