git.iko.soy/typeable/pandoc
on 1.10.0.3 help sign in
typeable/pandoc/tests/mediawiki-reader.wiki
369 lines 4.5 kB history raw
1= header =
3== header level two ==
5===header level 3===
7====header ''level'' four====
9===== header level 5 =====
11====== header level 6 ======
13======= not a header ========
15 == not a header ==
17== emph and strong ==
19''emph'' '''strong'''
21'''''strong and emph'''''
23'''''emph inside'' strong'''
25'''strong with ''emph'''''
27'''''strong inside''' emph''
29== horizontal rule ==
31top
32----
33bottom
35----
37== nowiki ==
39<nowiki>''not emph''</nowiki>
41== strikeout ==
43<strike> This is ''struck out''</strike>
45== entities ==
47hi & low
49hi &amp; low
51G&ouml;del
53&#777;&#xAAA;
55== comments ==
57inline<!-- secret --> comment
59<!-- secret -->
61between blocks
63 <!-- secret -->
65== linebreaks ==
67hi<br/>there
69hi<br>
70there
72== : indents ==
74hi
75: there
76bud
78hi
79:: there
80bud
82== p tags ==
84hi there
85<p>
86bud
87<p>
88another
89</p>
91== raw html ==
93hi <span style="color:red">''there''</span>.
95<ins>inserted</ins>
97<div class="special">
98hi ''there''
99</div>
101== sup, sub, del ==
103H<sub>2</sub>O base<sup>''exponent''</sup>
104<del>hello</del>
106== inline code ==
108<code>*→*</code> <tt>typed</tt> <hask>>>=</hask>
110== code blocks ==
112<pre>
113case xs of
114 (_:_) -> reverse xs
115 [] -> ['*']
116</pre>
118<haskell>
119case xs of
120 (_:_) -> reverse xs
121 [] -> ['*']
122</haskell>
124<syntaxhighlight lang="ruby" line start=100>
125widgets.each do |w|
126 print w.price
127end
128</syntaxhighlight>
130== block quotes ==
132Regular paragraph
133<blockquote>
134This is a block quote.
136With two paragraphs.
137</blockquote>
138Nother paragraph.
140== external links ==
142[http://google.com ''Google'' search engine]
144http://johnmacfarlane.net/pandoc/
146[http://google.com] [http://yahoo.com]
148[mailto:info@example.org email me]
150== internal links ==
152[[Help]]
154[[Help|the help page]]
156[[Help]]ers
158[[Help]]<nowiki/>ers
160[[Help:Contents|]]
162[[#My anchor]]
164[[Page#with anchor|and text]]
166== images ==
168[[File:example.jpg|caption]]
170[[File:example.jpg|border|the ''caption'' with [http://google.com external link]]]
172[[File:example.jpg|frameless|border|30x40px|caption]]
174[[File:example.jpg]]
176== lists ==
178* Start each line
179* with an asterisk (*).
180** More asterisks gives deeper
181*** and deeper levels.
182* Line breaks<br/>don't break levels.
183*** But jumping levels creates empty space.
184Any other start ends the list.
186# Start each line
187# with a number sign (#).
188## More number signs gives deeper
189### and deeper
190### levels.
191# Line breaks<br/>don't break levels.
192### But jumping levels creates empty space.
193# Blank lines
195# end the list and start another.
196Any other start also
197ends the list.
199;item 1
200: definition 1
201;item 2
202: definition 2-1
203: definition 2-2
205# one
206# two
207#* two point one
208#* two point two
209# three
210#; three item one
211#: three def one
212# four
213#: four def one
214#: this looks like a continuation
215#: and is often used
216#: instead<br/>of <nowiki><br/></nowiki>
217# {{{template
218|author=John
219|title=My Book
220}}}
221## five sub 1
222### five sub 1 sub 1
223## five sub 2
225<ol>
226 <li>list item ''emph''
227 <ol>
228 <li>list item B1</li>
229 <li>list item B2</li>
230 </ol>continuing list item A1
231 </li>
232 <li>list item A2</li>
233</ol>
235<ul>
236#abc
237#def
238#ghi
239</ul>
241<ol start="9">
242<li>Amsterdam</li>
243<li>Rotterdam</li>
244<li>The Hague</li>
245</ol>
247== math ==
249Here is some <math>x=\frac{y^\pi}{z}</math>.
251== preformatted blocks ==
253 Start each line with a space.
254 Text is '''preformatted''' and
255 ''markups'' '''''can''''' be done.
257 hell yeah
259 <nowiki>Start with a space in the first column,
260(before the <nowiki>).
262Then your block format will be
263 maintained.
265This is good for copying in code blocks:
267def function():
268 """documentation string"""
270 if True:
271 print True
272 else:
273 print False</nowiki>
275Not<hr/> preformatted
277== templates ==
279{{Welcome}}
281{{Foo:Bar}}
283{{Thankyou|all your effort|Me}}
285Written {{{date}}} by {{{name}}}.
287== tables ==
289{|
290|-
291|Orange
292|Apple
293|-
294|Bread
295|Pie
296|-
297|Butter
298|Ice cream
299|}
301{|
302|+Food complements
303!Orange
304!Apple
305|-
306|Bread
307|Pie
308|-
309!Butter
310|Ice cream
311|}
313{|
314|+Food complements
315!Orange
316!Apple
317|-
318|Bread
320and cheese
321|Pie
323# apple
324# carrot
326|}
328{|
329| Orange || Apple || more
330|-
331| Bread || Pie || more
332|-
333| Butter || Ice cream || and more
334|}
336{|width="50%"
337! align="left" width="50%"| Left
338! align="right"|Right
339! align="center"|Center
340|-
341| left || 15.00 || centered
342|-
343| more || 2.0 || more
344|}
346{|
347|-
348|Orange
349|Apple
350|-
351|Bread
353{|
354!fruit
355!topping
356|-
357|apple
358|ice cream
359|}
360|-
361|Butter
362|Ice cream
363|}
366== notes ==
368My note!<ref>This.</ref>