git.iko.soy/typeable/pandoc
on rc/2.8.1 help sign in
60 lines 2.5 kB history raw
1```
2% pandoc -f org -t native
3#+BEGIN_EXAMPLE -i
4 This should retain the four leading spaces
5#+END_EXAMPLE
6^D
7[CodeBlock ("",["example"],[]) " This should retain the four leading spaces\n"]
8```
10```
11% pandoc -f org -t html
12- depth 1
13 #+NAME: bob
14 #+BEGIN_EXAMPLE -i
15 Vertical alignment is four spaces beyond the appearance of the word "depth".
16 #+END_EXAMPLE
17 - depth 2
18 #+begin_example
19 Vertically aligned with the second appearance of the word "depth".
20 #+end_example
21 #+begin_example -i
22 Vertical alignment is four spaces beyond the second
23 appearance of the word "depth".
24 The "begin" portion is a component of
25 this deeper list element, so that guarantees
26 that the entire block must be a component of the
27 inner list element.
28 #+end_example
29 Still inside the inner list element
30 #+NAME: carrie
31 #+BEGIN_EXAMPLE
32 This belongs to the outer list element, and is aligned accordingly, since the NAME attribute is not indented deeply enough. It is not enough for the BEGIN alone to be aligned deeply if the block is meant to have a NAME.
33 #+END_EXAMPLE
34 Still in the shallower list element since the preceding example
35 block forced the deeper list element to terminate.
36Outside all lists.
37^D
38<ul>
39<li><p>depth 1</p>
40<pre id="bob" class="example"><code> Vertical alignment is four spaces beyond the appearance of the word &quot;depth&quot;.
41</code></pre>
42<ul>
43<li><p>depth 2</p>
44<pre class="example"><code>Vertically aligned with the second appearance of the word &quot;depth&quot;.
45</code></pre>
46<pre class="example"><code> Vertical alignment is four spaces beyond the second
47 appearance of the word &quot;depth&quot;.
48 The &quot;begin&quot; portion is a component of
49 this deeper list element, so that guarantees
50 that the entire block must be a component of the
51 inner list element.
52</code></pre>
53<p>Still inside the inner list element</p></li>
54</ul>
55<pre id="carrie" class="example"><code>This belongs to the outer list element, and is aligned accordingly, since the NAME attribute is not indented deeply enough. It is not enough for the BEGIN alone to be aligned deeply if the block is meant to have a NAME.
56</code></pre>
57<p>Still in the shallower list element since the preceding example block forced the deeper list element to terminate.</p></li>
58</ul>
59<p>Outside all lists.</p>
60```