78 lines
1.6 KiB
Text
78 lines
1.6 KiB
Text
#+CAPTION: block caption
|
|
#+BEGIN_SRC bash :results raw
|
|
echo "a bash source block"
|
|
|
|
function hello {
|
|
echo Hello World!
|
|
}
|
|
|
|
hello
|
|
#+END_SRC
|
|
|
|
#+BEGIN_SRC
|
|
a source block without a language
|
|
#+END_SRC
|
|
|
|
#+BEGIN_EXAMPLE foo bar baz
|
|
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
|
|
#+END_EXAMPLE
|
|
|
|
: examples like this
|
|
: are also supported
|
|
:
|
|
: note that /inline/ *markup* ignored
|
|
|
|
#+BEGIN_QUOTE
|
|
Mongodb is *webscale*. (source: [[http://www.mongodb-is-web-scale.com/][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
|
|
#+END_QUOTE
|
|
|
|
#+BEGIN_EXPORT html
|
|
<script>
|
|
console.log("Hello World!")
|
|
</script>
|
|
#+END_EXPORT
|
|
|
|
- list item 1
|
|
blocks can contain unindented lines that would normally end a list item
|
|
#+BEGIN_EXAMPLE
|
|
this line is not indented - if it was outside of a block the list item would end
|
|
#+END_EXAMPLE
|
|
#+BEGIN_QUOTE
|
|
this line is not indented - if it was outside of a block the list item would end
|
|
#+END_QUOTE
|
|
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_SRC
|
|
#+BEGIN_EXAMPLE
|
|
#+END_SRC
|
|
#+END_EXAMPLE
|
|
|
|
#+BEGIN_QUOTE
|
|
#+BEGIN_EXAMPLE
|
|
#+END_QUOTE
|
|
#+END_EXAMPLE
|