krz/orgo

Lightning fast org-mode static site generator.

clone: git clone https://gitbay.org/krz/orgo.git

main: fixtures/blocks.org · raw

 1#+TITLE: Blocks
 2
 3* Quote
 4
 5#+BEGIN_QUOTE
 6A quoted paragraph with /markup/.
 7
 8And a second paragraph.
 9#+END_QUOTE
10
11* Center
12
13#+BEGIN_CENTER
14Centred text.
15#+END_CENTER
16
17* Example
18
19#+BEGIN_EXAMPLE
20Verbatim *not bold* text.
21  Indentation preserved.
22#+END_EXAMPLE
23
24* Export
25
26#+BEGIN_EXPORT html
27<aside class="raw">Raw HTML passes through.</aside>
28#+END_EXPORT
29
30#+BEGIN_EXPORT latex
31\emph{A non-HTML backend is dropped.}
32#+END_EXPORT
33
34* Source
35
36#+BEGIN_SRC python
37def greet(name):
38    return f"hello {name}"
39#+END_SRC
40
41#+BEGIN_SRC
42plain block, no language
43#+END_SRC
44
45* Nested
46
47#+BEGIN_QUOTE
48A quote containing a source block:
49
50#+BEGIN_SRC sh
51echo hi
52#+END_SRC
53#+END_QUOTE
54
55* Verse
56
57#+BEGIN_VERSE
58Line breaks are the point
59  and indentation survives.
60#+END_VERSE
61
62* A named special block
63
64#+BEGIN_NOTE
65Contents are *org*, not literal text.
66#+END_NOTE