summaryrefslogtreecommitdiffstats
path: root/t/fmt/txt-markdown/PandocFencedCodeBlocks.trans
blob: 9e8ce469ef4e32e0a2fac729e0459bf7400b3433 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
~~~~~~~
IF (A > 3) {
  MOVESHIP(5 * GRAVITY, DOWN);
}
~~~~~~~

~~~~~~~~~~~~~~~~
~~~~~~~~~~
CODE INCLUDING TILDES
LINE2
~~~~~~~~~~
~~~~~~~~~~~~~~~~

~~~~ {#mycode .haskell .numberLines startFrom="100"}
QSORT []     = []
QSORT (X:XS) = QSORT (FILTER (< X) XS) ++ [X] ++
               QSORT (FILTER (>= X) XS)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

~~~haskell
QSORT []     = []
QSORT (X:XS) = QSORT (FILTER (< X) XS) ++ [X] ++
               QSORT (FILTER (>= X) XS)
~~~

```````
IF (A > 3) {
  MOVESHIP(5 * GRAVITY, DOWN);
}
```````

````````````````
``````````
CODE INCLUDING BACKTICKS
LINE2
``````````
````````````````

```` {#mycode .haskell .numberLines startFrom="100"}
QSORT []     = []
QSORT (X:XS) = QSORT (FILTER (< X) XS) ++ [X] ++
               QSORT (FILTER (>= X) XS)
`````````````````````````````````````````````````

```haskell
QSORT []     = []
QSORT (X:XS) = QSORT (FILTER (< X) XS) ++ [X] ++
               QSORT (FILTER (>= X) XS)
```

tHIS FIRST PANDOC FENCED DIV IS NON-NESTED.

::::: {#special .sidebar}
hERE IS A PARAGRAPH.

aND ANOTHER.
:::::
tHE SECOND PANDOC FENCED DIV IS NESTED.

::: Warning ::::::
tHIS IS A WARNING.

::: Danger
tHIS IS A WARNING WITHIN A WARNING.
:::
::::::::::::::::::

sOME EXTRA TEXT.