nitiwiki: extends the example with an external highlighter
[nit.git] / contrib / nitiwiki / examples / nitiwiki / pages / block.md
1 # Test of code highlighting
2
3 A basic block.
4
5     print(["hello", "world"].join(", "))
6
7 A fenced block.
8
9 ~~~
10 print(["hello", "world"].join(", "))
11 ~~~
12
13 A fenced block with metainfo, so it can be highlighted with an external tool.
14
15 ~~~html
16 <table class="hello"><tr>
17 <td>Hello</td>
18 <td>World</td>
19 </tr></table>
20 ~~~
21
22 A special block where the rendering is delegated to pandoc.
23 For instance, to render tables.
24
25 ~~~pandoc
26 what     how
27 ------ -----
28 hello     10
29 world   9001
30 ~~~
31
32 This try some exploit
33 ~~~raw'"; echo pwned >&2 #
34 Hello<br/>
35 World
36 ~~~