39
|
1 ============================================================
|
|
2
|
|
3 Font styles
|
|
4
|
|
5 ============================== Bold + italic markup
|
|
6 This should be '''''bold and italic'''''
|
|
7 ------------------------------
|
|
8 <p>
|
|
9 This should be <strong><i>bold and italic</i></strong>
|
|
10 </p>
|
|
11 ------------------------------
|
|
12 ============================== Consecutive bold + italic markup
|
|
13 '''''one''''', '''''two''''', '''''three''''', '''''four'''''
|
|
14 ------------------------------
|
|
15 <p>
|
|
16 <strong><i>one</i></strong>, <strong><i>two</i></strong>, <strong><i>three</i></strong>, <strong><i>four</i></strong>
|
|
17 </p>
|
|
18 ------------------------------
|
|
19 ============================== Underline + overstrike markup
|
|
20 __~~underlineoversrike~~__
|
|
21 ------------------------------
|
|
22 <p>
|
|
23 <span class="underline"><del>underlineoversrike</del></span>
|
|
24 </p>
|
|
25 ------------------------------
|
|
26 ============================== Problematic markup: overlapping tags
|
|
27 __~~overlapping__tags~~
|
|
28 ------------------------------
|
|
29 <p>
|
|
30 <span class="underline"><del>overlapping</del></span><del>tags</del>
|
|
31 </p>
|
|
32 ------------------------------
|
|
33 ============================== Problematic markup: out of order close tags
|
|
34 __~~outoforderclosetags__~~
|
|
35 ------------------------------
|
|
36 <p>
|
|
37 <span class="underline"><del>outoforderclosetags</del></span><del></del>
|
|
38 </p>
|
|
39 ------------------------------
|
|
40 ============================== Problematic markup: bold + missing close italic
|
|
41 '''''bolditalic''' # Open italic should be closed before paragraph end
|
|
42 ------------------------------
|
|
43 <p>
|
|
44 <strong><i>bolditalic</i></strong><i> # Open italic should be closed before paragraph end
|
|
45 </i></p>
|
|
46 ------------------------------
|
|
47 ============================== Italic immediately followed by bold markup
|
|
48 ''italic'''''bold'''
|
|
49 ------------------------------
|
|
50 <p>
|
|
51 <i>italic</i><strong>bold</strong>
|
|
52 </p>
|
|
53 ------------------------------
|
|
54 ============================== Bold immediately followed by italic markup
|
|
55 '''bold'''''italic''
|
|
56 ------------------------------
|
|
57 <p>
|
|
58 <strong>bold</strong><i>italic</i>
|
|
59 </p>
|
|
60 ------------------------------
|
|
61 ============================== Multiline bold italic markup
|
|
62 '''''bold
|
|
63 italic
|
|
64 multiline'''''
|
|
65 ------------------------------
|
|
66 <p>
|
|
67 <strong><i>bold
|
|
68 italic
|
|
69 multiline</i></strong>
|
|
70 </p>
|
|
71 ------------------------------
|
|
72 ============================== Problematic multiline bold italic markup
|
|
73 '''''bold
|
|
74 italic
|
|
75 multiline
|
|
76 without endtags
|
|
77 ------------------------------
|
|
78 <p>
|
|
79 <strong><i>bold
|
|
80 italic
|
|
81 multiline
|
|
82 without endtags
|
|
83 </i></strong></p>
|
|
84 ------------------------------
|
|
85 ============================== Super and subscript markup
|
|
86 ^superscript^, ,,subscript,,, normal.
|
|
87 ------------------------------
|
|
88 <p>
|
|
89 <sup>superscript</sup>, <sub>subscript</sub>, normal.
|
|
90 </p>
|
|
91 ------------------------------
|
|
92 <sup>superscript</sup>, <sub>subscript</sub>, normal.
|
|
93 ============================== Escaping markup
|
|
94 !__foo!__
|
|
95 !~~bar!~~
|
|
96 !,,boo!,,
|
|
97 !^baz!^
|
|
98 ------------------------------
|
|
99 <p>
|
|
100 __foo__
|
|
101 ~~bar~~
|
|
102 ,,boo,,
|
|
103 ^baz^
|
|
104 </p>
|
|
105 ------------------------------
|
|
106 ============================== Complex mixed verbatim markup
|
|
107 {{{verbatim}}}
|
|
108 {{{
|
|
109 {{{in `block`
|
|
110 }}}
|
|
111 `{{{this is verbatim}}}` and {{{`that` should also `be` verbatim}}}
|
|
112 ------------------------------
|
|
113 <p>
|
|
114 <tt>verbatim</tt>
|
|
115 </p>
|
|
116 <pre class="wiki">{{{in `block`
|
|
117 </pre><p>
|
|
118 <tt>{{{this is verbatim}}}</tt> and <tt>`that` should also `be` verbatim</tt>
|
|
119 </p>
|
|
120 ------------------------------
|
|
121 <tt>verbatim</tt>
|
|
122 […]
|
|
123 <tt>{{{this is verbatim}}}</tt> and <tt>`that` should also `be` verbatim</tt>
|
|
124 ============================================================
|
|
125
|
|
126 Link Resolvers
|
|
127
|
|
128 ============================== Link resolvers, short form
|
|
129 link:1
|
|
130
|
|
131 Thing [link:1] Thing[link:2]
|
|
132 ------------------------------
|
|
133 <p>
|
|
134 <a class="odd resolver" href="/thing/1">link:1</a>
|
|
135 </p>
|
|
136 <p>
|
|
137 Thing <a class="odd resolver" href="/thing/1">1</a> Thing<a class="even resolver" href="/thing/2">2</a>
|
|
138 </p>
|
|
139 ------------------------------
|
|
140 ============================== Escaping links resolvers, short form
|
|
141 !link:1
|
|
142 Thing ![link:1 number 1], CS![link:1], ![link:bar]
|
|
143 ------------------------------
|
|
144 <p>
|
|
145 link:1
|
|
146 Thing [link:1 number 1], CS[link:1], [link:bar]
|
|
147 </p>
|
|
148 ------------------------------
|
|
149 ============================== Link resolvers, long form with label
|
|
150 [link:1 thing one], [http://www.edgewall.com/ edgewall]
|
|
151 ------------------------------
|
|
152 <p>
|
|
153 <a class="odd resolver" href="/thing/1">thing one</a>, <a class="ext-link" href="http://www.edgewall.com/"><span class="icon">edgewall</span></a>
|
|
154 </p>
|
|
155 ------------------------------
|
|
156 ============================== Link resolver SHREF_TARGET_LAST
|
|
157 Add-on to link:123:
|
|
158 Some change.
|
|
159 link:1
|
|
160 This ticket is the first one
|
|
161 link:123>
|
|
162 link:123&
|
|
163 ------------------------------
|
|
164 <p>
|
|
165 Add-on to <a class="odd resolver" href="/thing/123">link:123</a>:
|
|
166 Some change.
|
|
167 <a class="odd resolver" href="/thing/1">link:1</a>
|
|
168 This ticket is the first one
|
|
169 <a class="odd resolver" href="/thing/123">link:123</a>>
|
|
170 <a class="odd resolver" href="/thing/123">link:123</a>&
|
|
171 </p>
|
|
172 ------------------------------
|
|
173 Add-on to <a class="odd resolver" href="/thing/123">link:123</a>:
|
|
174 Some change.
|
|
175 <a class="odd resolver" href="/thing/1">link:1</a>
|
|
176 This ticket is the first one
|
|
177 <a class="odd resolver" href="/thing/123">link:123</a>>
|
|
178 <a class="odd resolver" href="/thing/123">link:123</a>&
|
|
179 ============================== Link resolver SHREF_TARGET_FIRST
|
|
180 <bug>http://localhost/bugzilla/show_bug.cgi?id=1284</bug> 804
|
|
181 ------------------------------
|
|
182 <p>
|
|
183 <bug><a class="ext-link" href="http://localhost/bugzilla/show_bug.cgi?id=1284"><span class="icon">http://localhost/bugzilla/show_bug.cgi?id=1284</span></a></bug> 804
|
|
184 </p>
|
|
185 ------------------------------
|
|
186 ============================== Link resolver SHREF_TARGET_MIDDLE
|
|
187 ||http://example.com/img.png||text||
|
|
188 ------------------------------
|
|
189 <table class="wiki">
|
|
190 <tr><td><a class="ext-link" href="http://example.com/img.png"><span class="icon">http://example.com/img.png</span></a></td><td>text
|
|
191 </td></tr></table>
|
|
192 ------------------------------
|
|
193 ||<a class="ext-link" href="http://example.com/img.png"><span class="icon">http://example.com/img.png</span></a>||text||
|
|
194 ============================== Link resolver, long form with quoting
|
|
195 [link:WikiStart Foo] [http://www.edgewall.com/ Edgewall]
|
|
196
|
|
197 link:"Foo Bar" link:"Foo Bar#baz"
|
|
198
|
|
199 [link:"Foo Bar" Foo Bar] [link:"Foo Bar#baz" Foo Bar]
|
|
200
|
|
201 [link:Argv "*argv[] versus **argv"]
|
|
202
|
|
203 [link:test "test.txt", line 123]
|
|
204
|
|
205 [link:pl/de %de]
|
|
206 ------------------------------
|
|
207 <p>
|
|
208 <a class="text resolver" href="/stuff/WikiStart">Foo</a> <a class="ext-link" href="http://www.edgewall.com/"><span class="icon">Edgewall</span></a>
|
|
209 </p>
|
|
210 <p>
|
|
211 <a class="text resolver" href="/stuff/Foo%20Bar">link:"Foo Bar"</a> <a class="text resolver" href="/stuff/Foo%20Bar%23baz">link:"Foo Bar#baz"</a>
|
|
212 </p>
|
|
213 <p>
|
|
214 <a class="text resolver" href="/stuff/Foo%20Bar">Foo Bar</a> <a class="text resolver" href="/stuff/Foo%20Bar%23baz">Foo Bar</a>
|
|
215 </p>
|
|
216 <p>
|
|
217 <a class="text resolver" href="/stuff/Argv">*argv[] versus **argv</a>
|
|
218 </p>
|
|
219 <p>
|
|
220 <a class="text resolver" href="/stuff/test">"test.txt", line 123</a>
|
|
221 </p>
|
|
222 <p>
|
|
223 <a class="text resolver" href="/stuff/pl/de">%de</a>
|
|
224 </p>
|
|
225 ------------------------------
|
|
226 ============================== Link resolver in markup
|
|
227 '''link:1''', ''link:1'', ~~link:1~~, __link:1__
|
|
228 ------------------------------
|
|
229 <p>
|
|
230 <strong><a class="odd resolver" href="/thing/1">link:1</a></strong>, <i><a class="odd resolver" href="/thing/1">link:1</a></i>, <del><a class="odd resolver" href="/thing/1">link:1</a></del>, <span class="underline"><a class="odd resolver" href="/thing/1">link:1</a></span>
|
|
231 </p>
|
|
232 ------------------------------
|
|
233 ============================== Link resolver, quoting of target
|
|
234 link:1
|
|
235 link:12
|
|
236 link:123
|
|
237 link:'1'
|
|
238 link:'12'
|
|
239 link:'123'
|
|
240 link:"1"
|
|
241 link:"12"
|
|
242 link:"123"
|
|
243 ------------------------------
|
|
244 <p>
|
|
245 <a class="odd resolver" href="/thing/1">link:1</a>
|
|
246 <a class="even resolver" href="/thing/12">link:12</a>
|
|
247 <a class="odd resolver" href="/thing/123">link:123</a>
|
|
248 <a class="odd resolver" href="/thing/1">link:'1'</a>
|
|
249 <a class="even resolver" href="/thing/12">link:'12'</a>
|
|
250 <a class="odd resolver" href="/thing/123">link:'123'</a>
|
|
251 <a class="odd resolver" href="/thing/1">link:"1"</a>
|
|
252 <a class="even resolver" href="/thing/12">link:"12"</a>
|
|
253 <a class="odd resolver" href="/thing/123">link:"123"</a>
|
|
254 </p>
|
|
255 ------------------------------
|
|
256 ============================================================
|
|
257
|
|
258 Other Links
|
|
259
|
|
260 ============================== Relative links
|
|
261 Relative links are supported:
|
|
262 [../parent See above]
|
|
263 [/docs See documentation]
|
|
264 [/images/logo.png Our logo]
|
|
265 [/]
|
|
266 ------------------------------
|
|
267 <p>
|
|
268 Relative links are supported:
|
|
269 <a href="../parent">See above</a>
|
|
270 <a href="/docs">See documentation</a>
|
|
271 <a href="/images/logo.png">Our logo</a>
|
|
272 <a href="/">/</a>
|
|
273 </p>
|
|
274 ------------------------------
|
|
275 ============================== Image links are now regular external links
|
|
276 http://example.com/img.png?foo=bar
|
|
277 ------------------------------
|
|
278 <p>
|
|
279 <a class="ext-link" href="http://example.com/img.png?foo=bar"><span class="icon">http://example.com/img.png?foo=bar</span></a>
|
|
280 </p>
|
|
281 ------------------------------
|
|
282 <a class="ext-link" href="http://example.com/img.png?foo=bar"><span class="icon">http://example.com/img.png?foo=bar</span></a>
|
|
283 ============================== Arbitrary protocol Link
|
|
284 ''RFCs von ftp://ftp.rfc-editor.org/in-notes/rfcXXXX.txt''
|
|
285 ------------------------------
|
|
286 <p>
|
|
287 <i>RFCs von <a class="ext-link" href="ftp://ftp.rfc-editor.org/in-notes/rfcXXXX.txt"><span class="icon">ftp://ftp.rfc-editor.org/in-notes/rfcXXXX.txt</span></a></i>
|
|
288 </p>
|
|
289 ------------------------------
|
|
290 ============================== Another arbitrary protocol Link
|
|
291 svn+ssh://secureserver.org
|
|
292 [svn+ssh://secureserver.org SVN link]
|
|
293 rfc-2396.compatible://link
|
|
294 [rfc-2396.compatible://link RFC 2396]
|
|
295 ------------------------------
|
|
296 <p>
|
|
297 <a class="ext-link" href="svn+ssh://secureserver.org"><span class="icon">svn+ssh://secureserver.org</span></a>
|
|
298 <a class="ext-link" href="svn+ssh://secureserver.org"><span class="icon">SVN link</span></a>
|
|
299 <a class="ext-link" href="rfc-2396.compatible://link"><span class="icon">rfc-2396.compatible://link</span></a>
|
|
300 <a class="ext-link" href="rfc-2396.compatible://link"><span class="icon">RFC 2396</span></a>
|
|
301 </p>
|
|
302 ------------------------------
|
|
303 ============================== Link resolver counter examples
|
|
304 Test:[[BR]] There should be a line break
|
|
305
|
|
306 Other test:'''bold text''' should be bold
|
|
307 ------------------------------
|
|
308 <p>
|
|
309 Test:<br /> There should be a line break
|
|
310 </p>
|
|
311 <p>
|
|
312 Other test:<strong>bold text</strong> should be bold
|
|
313 </p>
|
|
314 ------------------------------
|
|
315 Test: There should be a line break
|
|
316
|
|
317 Other test:<strong>bold text</strong> should be bold
|
|
318 ============================== Link resolver counter example
|
|
319 '''Note:'''
|
|
320 ------------------------------
|
|
321 <p>
|
|
322 <strong>Note:</strong>
|
|
323 </p>
|
|
324 ------------------------------
|
|
325 <strong>Note:</strong>
|
|
326 ==============================
|
|
327 ============================================================
|
|
328
|
|
329 Processor blocks
|
|
330
|
|
331 ============================== Code Block 1
|
|
332 {{{
|
|
333 Preformatted text.
|
|
334 }}}
|
|
335 Paragraph
|
|
336 ------------------------------
|
|
337 <pre class="wiki">Preformatted text.
|
|
338 </pre><p>
|
|
339 Paragraph
|
|
340 </p>
|
|
341 ------------------------------
|
|
342 […]
|
|
343 Paragraph
|
|
344 ============================== Code Block 2
|
|
345 {{{
|
|
346 <b>Preformatted text</b>.
|
|
347 }}}
|
|
348 Paragraph
|
|
349 ------------------------------
|
|
350 <pre class="wiki"><b>Preformatted text</b>.
|
|
351 </pre><p>
|
|
352 Paragraph
|
|
353 </p>
|
|
354 ------------------------------
|
|
355 […]
|
|
356 Paragraph
|
|
357 ============================== Embedded code blocks
|
|
358 {{{
|
|
359 Outer block.
|
|
360 {{{
|
|
361 Inner block.
|
|
362 }}}
|
|
363 }}}
|
|
364 Paragraph
|
|
365 ------------------------------
|
|
366 <pre class="wiki">Outer block.
|
|
367 {{{
|
|
368 Inner block.
|
|
369 }}}
|
|
370 </pre><p>
|
|
371 Paragraph
|
|
372 </p>
|
|
373 ------------------------------
|
|
374 […]
|
|
375 Paragraph
|
|
376 ============================== Consecutive code blocks
|
|
377 Block
|
|
378 {{{
|
|
379 number one
|
|
380 }}}
|
|
381 and block
|
|
382 {{{
|
|
383 number two
|
|
384 }}}
|
|
385 .
|
|
386 ------------------------------
|
|
387 <p>
|
|
388 Block
|
|
389 </p>
|
|
390 <pre class="wiki">number one
|
|
391 </pre><p>
|
|
392 and block
|
|
393 </p>
|
|
394 <pre class="wiki">number two
|
|
395 </pre><p>
|
|
396 .
|
|
397 </p>
|
|
398 ------------------------------
|
|
399 Block
|
|
400 […]
|
|
401 and block
|
|
402 […]
|
|
403 .
|
|
404 ============================== Unfinished code blocks
|
|
405 Block
|
|
406 {{{
|
|
407 number one
|
|
408
|
|
409 and block
|
|
410 {{{
|
|
411 number two
|
|
412 }}
|
|
413 ------------------------------
|
|
414 <p>
|
|
415 Block
|
|
416 </p>
|
|
417 <pre class="wiki">number one
|
|
418
|
|
419 and block
|
|
420 {{{
|
|
421 number two
|
|
422 }}
|
|
423 }}}
|
|
424 </pre>------------------------------
|
|
425 Block […]
|
|
426 ============================== Wiki processor
|
|
427 {{{
|
|
428 #!default
|
|
429 Preformatted text.
|
|
430 }}}
|
|
431 Paragraph
|
|
432 ------------------------------
|
|
433 <pre class="wiki">Preformatted text.
|
|
434 </pre><p>
|
|
435 Paragraph
|
|
436 </p>
|
|
437 ------------------------------
|
|
438 […]
|
|
439 Paragraph
|
|
440 ============================== Wiki processor counter example
|
|
441 {{{
|
|
442 #!/bin/sh
|
|
443 echo "foo"
|
|
444 }}}
|
|
445 Paragraph
|
|
446 ------------------------------
|
|
447 <pre class="wiki">#!/bin/sh
|
|
448 echo "foo"
|
|
449 </pre><p>
|
|
450 Paragraph
|
|
451 </p>
|
|
452 ------------------------------
|
|
453 […]
|
|
454 Paragraph
|
|
455 ============================== HTML wiki processor
|
|
456 {{{
|
|
457 #!html
|
|
458 <p>Hello World</p>
|
|
459 }}}
|
|
460 ------------------------------
|
|
461 <p>Hello World</p>
|
|
462 ------------------------------
|
|
463 […]
|
|
464 ============================== HTML wiki processor, XSS check 1
|
|
465 {{{
|
|
466 #!html
|
|
467 <script>alert("");</script>
|
|
468 }}}
|
|
469 ------------------------------
|
|
470
|
|
471 ------------------------------
|
|
472 […]
|
|
473 ============================== HTML wiki processor, XSS check 2
|
|
474 {{{
|
|
475 #!html
|
|
476 <div onclick="alert('')">Click me</div>
|
|
477 }}}
|
|
478 ------------------------------
|
|
479 <div>Click me</div>
|
|
480 ------------------------------
|
|
481 […]
|
|
482 ============================================================
|
|
483
|
|
484 Wiki Macros
|
|
485
|
|
486 ============================== Macro with arguments (leading)
|
|
487 [[HelloWorld(hej hopp)]]
|
|
488 ------------------------------
|
|
489 <p>
|
|
490 Hello World, args = hej hopp
|
|
491 </p>
|
|
492 ------------------------------
|
|
493 [[HelloWorld(...)]]
|
|
494 ============================== Macro with arguments (in flow)
|
|
495 Hello, [[HelloWorld(hej hopp)]]
|
|
496 ------------------------------
|
|
497 <p>
|
|
498 Hello, Hello World, args = hej hopp
|
|
499 </p>
|
|
500 ------------------------------
|
|
501 Hello, [[HelloWorld(...)]]
|
|
502 ============================== Bad macro call
|
|
503 [[HelloWorld(hej hopp) ]] # This shouldnt executed as macro since it contain whitespace between ) and ]
|
|
504 ------------------------------
|
|
505 <p>
|
|
506 <a class="missing wiki" href="/wiki/%5BHelloWorld%28hej" rel="nofollow">hopp) ?</a>] # This shouldnt executed as macro since it contain whitespace between ) and ]
|
|
507 </p>
|
|
508 ------------------------------
|
|
509 <a class="missing wiki" href="/wiki/%5BHelloWorld%28hej" rel="nofollow">hopp) ?</a>] # This shouldnt executed as macro since it contain whitespace between ) and ]
|
|
510 ============================== Another bad macro call
|
|
511 [[HelloWorld(hej hopp))]] # Extra right brace and still executed
|
|
512 ------------------------------
|
|
513 <p>
|
|
514 Hello World, args = hej hopp) # Extra right brace and still executed
|
|
515 </p>
|
|
516 ------------------------------
|
|
517 [[HelloWorld(...)]] # Extra right brace and still executed
|
|
518 ============================== Two consecutive macros on a line
|
|
519 [[HelloWorld(hej hopp)]] [[HelloWorld(hej hopp2)]] # Test non greedy match
|
|
520 ------------------------------
|
|
521 <p>
|
|
522 Hello World, args = hej hopp Hello World, args = hej hopp2 # Test non greedy match
|
|
523 </p>
|
|
524 ------------------------------
|
|
525 [[HelloWorld(...)]] [[HelloWorld(...)]] # Test non greedy match
|
|
526 ============================== Macro returning a <div>
|
|
527 [[DivHelloWorld(hej hopp)]]
|
|
528 ------------------------------
|
|
529 <p>
|
|
530 </p><div>Hello World, args = hej hopp</div><p>
|
|
531 </p>
|
|
532 ------------------------------
|
|
533 [[DivHelloWorld(...)]]
|
|
534 ============================== Macro returning a <div class="...code...">
|
|
535 [[DivCode(hej hopp)]]
|
|
536 ------------------------------
|
|
537 <p>
|
|
538 <span class="code-block">Hello World, args = hej hopp</span>
|
|
539 </p>
|
|
540 ------------------------------
|
|
541 [[DivCode(...)]]
|
|
542 ============================== Macro returning an html.DIV(class="...code...">)
|
|
543 [[DivCodeElement(hej hopp)]]
|
|
544 ------------------------------
|
|
545 <p>
|
|
546 <span class="code-block">Hello World, args = hej hopp</span>
|
|
547 </p>
|
|
548 ------------------------------
|
|
549 [[DivCodeElement(...)]]
|
|
550 ============================== Inlined HTML wiki processor
|
|
551 Inline [[html(<B> Test </B>)]] text
|
|
552 ------------------------------
|
|
553 <p>
|
|
554 Inline <b> Test </b> text
|
|
555 </p>
|
|
556 ------------------------------
|
|
557 Inline [[html(...)]] text
|
|
558 ============================== BR macro
|
|
559 Line break [[BR]] another line[[br]]last line
|
|
560 ------------------------------
|
|
561 <p>
|
|
562 Line break <br /> another line<br />last line
|
|
563 </p>
|
|
564 ------------------------------
|
|
565 Line break another line last line
|
|
566 ============================== Comment wiki processor
|
|
567 Test comment blocks
|
|
568 {{{
|
|
569 #!comment
|
|
570 This is simply removed from the output
|
|
571 }}}
|
|
572 ------------------------------
|
|
573 <p>
|
|
574 Test comment blocks
|
|
575 </p>
|
|
576 ------------------------------
|
|
577 Test comment blocks
|
|
578 ============================== Comment wiki processor called as a macro
|
|
579 Inline [[comment(This should not be seen)]] comment
|
|
580 ------------------------------
|
|
581 <p>
|
|
582 Inline comment
|
|
583 </p>
|
|
584 ------------------------------
|
|
585 Inline comment
|
|
586 ============================================================
|
|
587
|
|
588 Headings
|
|
589
|
|
590 ============================== I18N heading
|
|
591 = ça marche! =
|
|
592 ------------------------------
|
|
593 <h1 id="çamarche">ça marche!</h1>
|
|
594 ------------------------------
|
|
595 = ça marche! =
|
|
596 ============================== Quoted heading
|
|
597 = "Test" =
|
|
598 ------------------------------
|
|
599 <h1 id="Test">"Test"</h1>
|
|
600 ------------------------------
|
|
601 = "Test" =
|
|
602 ============================== Heading with < and >
|
|
603 = Foo <Bar> Baz =
|
|
604 ------------------------------
|
|
605 <h1 id="FooBarBaz">Foo <Bar> Baz</h1>
|
|
606 ------------------------------
|
|
607 = Foo <Bar> Baz =
|
|
608 ============================== Heading with .
|
|
609 = Version 0.10 =
|
|
610 ------------------------------
|
|
611 <h1 id="Version0.10">Version 0.10</h1>
|
|
612 ------------------------------
|
|
613 = Version 0.10 =
|
|
614 ============================== Normal heading
|
|
615 == Heading with trailing white-space ==
|
|
616 ------------------------------
|
|
617 <h2 id="Headingwithtrailingwhite-space">Heading with trailing white-space</h2>
|
|
618 ------------------------------
|
|
619 == Heading with trailing white-space ==
|
|
620 ============================== Formatted heading
|
|
621 == ''Formatted'' ~~Heading~~ ==
|
|
622 ------------------------------
|
|
623 <h2 id="FormattedHeading"><i>Formatted</i> <del>Heading</del></h2>
|
|
624 ------------------------------
|
|
625 == ''Formatted'' ~~Heading~~ ==
|
|
626 ============================== Heading with link
|
|
627 == [wiki:SandBox Linked Heading] ==
|
|
628 ------------------------------
|
|
629 <h2 id="LinkedHeading"><a class="missing wiki" href="/wiki/SandBox" rel="nofollow">Linked Heading?</a></h2>
|
|
630 ------------------------------
|
|
631 == [wiki:SandBox Linked Heading] ==
|
|
632 ============================== Normal heading, fixed id
|
|
633 == Heading with fixed id == #heading-fixed-id
|
|
634 ------------------------------
|
|
635 <h2 id="heading-fixed-id">Heading with fixed id</h2>
|
|
636 ------------------------------
|
|
637 == Heading with fixed id == #heading-fixed-id
|
|
638 ============================== Normal heading, auto-corrected id
|
|
639 == 10 tips ==
|
|
640 ------------------------------
|
|
641 <h2 id="a10tips">10 tips</h2>
|
|
642 ------------------------------
|
|
643 == 10 tips ==
|
|
644 ============================================================
|
|
645
|
|
646 Lists
|
|
647
|
|
648 ============================== Bulleted lists
|
|
649 Paragraph
|
|
650 * foo bar
|
|
651 boo baz
|
|
652 * Subitem
|
|
653 Subitem line 2
|
|
654 * item 2
|
|
655 item 2 line 2
|
|
656 Paragraph
|
|
657 ------------------------------
|
|
658 <p>
|
|
659 Paragraph
|
|
660 </p>
|
|
661 <ul><li>foo bar
|
|
662 boo baz
|
|
663 <ul><li>Subitem
|
|
664 Subitem line 2
|
|
665 </li></ul></li><li>item 2
|
|
666 item 2 line 2
|
|
667 </li></ul><p>
|
|
668 Paragraph
|
|
669 </p>
|
|
670 ------------------------------
|
|
671 Paragraph
|
|
672 * foo bar
|
|
673 boo baz
|
|
674 * Subitem
|
|
675 Subitem line 2
|
|
676 * item 2
|
|
677 item 2 line 2
|
|
678 Paragraph
|
|
679 ============================== Changelog sample
|
|
680 2003-09-18 23:26 Joe Bar <joeb@gloogle.gom>
|
|
681
|
|
682 * src/code.py: Fix problem with obsolete use of
|
|
683 backslash in symbols.
|
|
684 * src/test.py: Added unit tests.
|
|
685 - test + symbol
|
|
686 - test - symbol
|
|
687 Paragraph
|
|
688 ------------------------------
|
|
689 <p>
|
|
690 2003-09-18 23:26 Joe Bar <joeb@gloogle.gom>
|
|
691 </p>
|
|
692 <ul><li>src/code.py: Fix problem with obsolete use of
|
|
693 backslash in symbols.
|
|
694 </li><li>src/test.py: Added unit tests.
|
|
695 <ul><li>test + symbol
|
|
696 </li><li>test - symbol
|
|
697 </li></ul></li></ul><p>
|
|
698 Paragraph
|
|
699 </p>
|
|
700 ------------------------------
|
|
701 ============================== Complex bulleted list
|
|
702 * foo bar
|
|
703 boo baz
|
|
704 * Subitem 1
|
|
705 - nested item 1
|
|
706 - nested item 2
|
|
707 nested item 2 continued
|
|
708 Subitem 1 continued
|
|
709 * Subitem 2
|
|
710 Subitem 2 continued
|
|
711 * Subitem 3
|
|
712 continued
|
|
713 * item 2
|
|
714 item 2 line 2
|
|
715 Paragraph
|
|
716 ------------------------------
|
|
717 <ul><li>foo bar
|
|
718 boo baz
|
|
719 <ul><li>Subitem 1
|
|
720 <ul><li>nested item 1
|
|
721 </li><li>nested item 2
|
|
722 nested item 2 continued
|
|
723 </li></ul></li><li>Subitem 1 continued
|
|
724 </li></ul></li><li>Subitem 2
|
|
725 Subitem 2 continued
|
|
726 </li><li>Subitem 3
|
|
727 continued
|
|
728 </li></ul><ul><li>item 2
|
|
729 item 2 line 2
|
|
730 </li></ul><p>
|
|
731 Paragraph
|
|
732 </p>
|
|
733 ------------------------------
|
|
734 ============================== Numbered lists
|
|
735 1. item 1
|
|
736 a. item 1.a
|
|
737 a. item 1.b
|
|
738
|
|
739 Some paragraph
|
|
740
|
|
741 2. continue with item 2
|
|
742 i. roman 1
|
|
743 ii. roman 2
|
|
744 Paragraph
|
|
745 ------------------------------
|
|
746 <ol><li>item 1
|
|
747 <ol class="loweralpha"><li>item 1.a
|
|
748 </li><li>item 1.b
|
|
749 </li></ol></li></ol><p>
|
|
750 Some paragraph
|
|
751 </p>
|
|
752 <ol start="2"><li>continue with item 2
|
|
753 <ol class="lowerroman"><li>roman 1
|
|
754 </li><li>roman 2
|
|
755 </li></ol></li></ol><p>
|
|
756 Paragraph
|
|
757 </p>
|
|
758 ------------------------------
|
|
759 1. item 1
|
|
760 a. item 1.a
|
|
761 a. item 1.b
|
|
762
|
|
763 Some paragraph
|
|
764
|
|
765 2. continue with item 2
|
|
766 i. roman 1
|
|
767 ii. roman 2
|
|
768 Paragraph
|
|
769 ============================== Numbered lists multi-line items
|
|
770 1. This is a very long line at
|
|
771 the first level, which works correctly.
|
|
772 1. But this line at the second level, which
|
|
773 is also continued on the next line, does not.
|
|
774 Paragraph
|
|
775 ------------------------------
|
|
776 <ol><li>This is a very long line at
|
|
777 the first level, which works correctly.
|
|
778 <ol><li>But this line at the second level, which
|
|
779 is also continued on the next line, does not.
|
|
780 </li></ol></li></ol><p>
|
|
781 Paragraph
|
|
782 </p>
|
|
783 ------------------------------
|
|
784 1. This is a very long line at
|
|
785 the first level, which works correctly.
|
|
786 1. But this line at the second level, which
|
|
787 is also continued on the next line, does not.
|
|
788 Paragraph
|
|
789 ============================== Numbered lists counter-examples
|
|
790 This will not start a new numbered
|
|
791 list. There's more than one character
|
|
792 before the "."
|
|
793 OTOH, the following is a roman numbered list:
|
|
794 iii. start
|
|
795 xxvii. maximal number in sequence
|
|
796 Paragraph
|
|
797 ------------------------------
|
|
798 <blockquote>
|
|
799 <p>
|
|
800 This will not start a new numbered
|
|
801 list. There's more than one character
|
|
802 before the "."
|
|
803 OTOH, the following is a roman numbered list:
|
|
804 </p>
|
|
805 </blockquote>
|
|
806 <ol class="lowerroman"><li>start
|
|
807 </li><li>maximal number in sequence
|
|
808 </li></ol><p>
|
|
809 Paragraph
|
|
810 </p>
|
|
811 ------------------------------
|
|
812 ============================== Mixed lists multi-line items
|
|
813 1. multi-line
|
|
814 numbered list
|
|
815 i. multi-line
|
|
816 item i.
|
|
817 * sub item
|
|
818 ii. multi-line
|
|
819 item ii.
|
|
820 * sub item
|
|
821 multiline
|
|
822 a. subsub
|
|
823 multiline
|
|
824 b. subsub
|
|
825 iii. multi-line
|
|
826 item iii.
|
|
827 * sub item
|
|
828 Paragraph
|
|
829 ------------------------------
|
|
830 <ol><li>multi-line
|
|
831 numbered list
|
|
832 <ol class="lowerroman"><li>multi-line
|
|
833 item i.
|
|
834 <ul><li>sub item
|
|
835 </li></ul></li><li>multi-line
|
|
836 item ii.
|
|
837 <ul><li>sub item
|
|
838 multiline
|
|
839 <ol class="loweralpha"><li>subsub
|
|
840 multiline
|
|
841 </li><li>subsub
|
|
842 </li></ol></li></ul></li><li>multi-line
|
|
843 item iii.
|
|
844 <ul><li>sub item
|
|
845 </li></ul></li></ol></li></ol><p>
|
|
846 Paragraph
|
|
847 </p>
|
|
848 ------------------------------
|
|
849 ============================== Simple definition list
|
|
850 term:: definition
|
|
851 ------------------------------
|
|
852 <dl><dt>term</dt><dd>definition
|
|
853 </dd></dl>
|
|
854 ------------------------------
|
|
855 term:: definition
|
|
856 ============================== Tricky definition list
|
|
857 term:: definition:: text
|
|
858 ------------------------------
|
|
859 <dl><dt>term</dt><dd>definition:: text
|
|
860 </dd></dl>
|
|
861 ------------------------------
|
|
862 term:: definition:: text
|
|
863 ============================== Verbatim term in definition list
|
|
864 `term`:: definition
|
|
865 ------------------------------
|
|
866 <dl><dt><tt>term</tt></dt><dd>definition
|
|
867 </dd></dl>
|
|
868 ------------------------------
|
|
869 <tt>term</tt>:: definition
|
|
870 ============================== Another verbatim term in definition list
|
|
871 {{{term}}}:: definition
|
|
872 ------------------------------
|
|
873 <dl><dt><tt>term</tt></dt><dd>definition
|
|
874 </dd></dl>
|
|
875 ------------------------------
|
|
876 <tt>term</tt>:: definition
|
|
877 ============================== Complex definition list
|
|
878 complex topic:: multiline
|
|
879 ''formatted''
|
|
880 definition
|
|
881 ------------------------------
|
|
882 <dl><dt>complex topic</dt><dd>multiline
|
|
883 <i>formatted</i>
|
|
884 definition
|
|
885 </dd></dl>
|
|
886 ------------------------------
|
|
887 complex topic:: multiline
|
|
888 <i>formatted</i>
|
|
889 definition
|
|
890 ============================== Definition list counter example
|
|
891 term::definition
|
|
892 ------------------------------
|
|
893 <blockquote>
|
|
894 <p>
|
|
895 term::definition
|
|
896 </p>
|
|
897 </blockquote>
|
|
898 ------------------------------
|
|
899 term::definition
|
|
900 ============================== Definition list + escaped definition list
|
|
901 complex topic:: multiline
|
|
902 `not:: a dl`
|
|
903 ------------------------------
|
|
904 <dl><dt>complex topic</dt><dd>multiline
|
|
905 <tt>not:: a dl</tt>
|
|
906 </dd></dl>
|
|
907 ------------------------------
|
|
908 complex topic:: multiline
|
|
909 <tt>not:: a dl</tt>
|
|
910 ============================== Definition list + another escaped definition list
|
|
911 complex topic:: multiline
|
|
912 {{{not:: a dl}}}
|
|
913 ------------------------------
|
|
914 <dl><dt>complex topic</dt><dd>multiline
|
|
915 <tt>not:: a dl</tt>
|
|
916 </dd></dl>
|
|
917 ------------------------------
|
|
918 complex topic:: multiline
|
|
919 <tt>not:: a dl</tt>
|
|
920 ============================================================
|
|
921
|
|
922 Tables
|
|
923
|
|
924 ============================== Simple Table, one column
|
|
925 || a ||
|
|
926 || b ||
|
|
927 ------------------------------
|
|
928 <table class="wiki">
|
|
929 <tr><td> a
|
|
930 </td></tr><tr><td> b
|
|
931 </td></tr></table>
|
|
932 ------------------------------
|
|
933 || a ||
|
|
934 || b ||
|
|
935 ============================== Simple Table, multiple columns
|
|
936 in:
|
|
937 || RPC# || parameter len || ..... parameter ..... ||
|
|
938 out:
|
|
939 || RPC# || parameter len || ..... parameter ..... ||
|
|
940 ----
|
|
941 ------------------------------
|
|
942 <p>
|
|
943 in:
|
|
944 </p>
|
|
945 <table class="wiki">
|
|
946 <tr><td> RPC# </td><td> parameter len </td><td> ..... parameter .....
|
|
947 </td></tr></table>
|
|
948 <p>
|
|
949 out:
|
|
950 </p>
|
|
951 <table class="wiki">
|
|
952 <tr><td> RPC# </td><td> parameter len </td><td> ..... parameter .....
|
|
953 </td></tr></table>
|
|
954 <hr />
|
|
955 ------------------------------
|
|
956 in:
|
|
957 || RPC# || parameter len || ..... parameter ..... ||
|
|
958 out:
|
|
959 || RPC# || parameter len || ..... parameter ..... ||
|
|
960 ----
|
|
961 ============================== Indented tables, multiple columns
|
|
962 || a || b ||
|
|
963
|
|
964 || a || b ||
|
|
965 || a || b ||
|
|
966
|
|
967 || a || b ||
|
|
968 ------------------------------
|
|
969 <table class="wiki">
|
|
970 <tr><td> a </td><td> b
|
|
971 </td></tr></table>
|
|
972 <blockquote>
|
|
973 <table class="wiki">
|
|
974 <tr><td> a </td><td> b
|
|
975 </td></tr><tr><td> a </td><td> b
|
|
976 </td></tr></table>
|
|
977 </blockquote>
|
|
978 <table class="wiki">
|
|
979 <tr><td> a </td><td> b
|
|
980 </td></tr></table>
|
|
981 ------------------------------
|
|
982 || a || b ||
|
|
983
|
|
984 || a || b ||
|
|
985 || a || b ||
|
|
986
|
|
987 || a || b ||
|
|
988 ============================================================
|
|
989
|
|
990 Mixed examples
|
|
991
|
|
992 ============================== Mix of headings and lists
|
|
993 = Heading 1 =
|
|
994 Paragraph
|
|
995 * Item 1
|
|
996 * Item 2
|
|
997 Another paragraph
|
|
998 ------------------------------
|
|
999 <h1 id="Heading1">Heading 1</h1>
|
|
1000 <p>
|
|
1001 Paragraph
|
|
1002 </p>
|
|
1003 <ul><li>Item 1
|
|
1004 <ul><li>Item 2
|
|
1005 </li></ul></li></ul><p>
|
|
1006 Another paragraph
|
|
1007 </p>
|
|
1008 ------------------------------
|
|
1009 = Heading 1 =
|
|
1010 Paragraph
|
|
1011 * Item 1
|
|
1012 * Item 2
|
|
1013 Another paragraph
|
|
1014 ============================== Heading, lists and table
|
|
1015 Paragraph
|
|
1016 ----
|
|
1017 1. Item 1
|
|
1018 2. Item 2
|
|
1019 ||Table||cell||
|
|
1020 ||Foo||Bar||Baz||
|
|
1021 http://www.edgewall.com/
|
|
1022 ------------------------------
|
|
1023 <p>
|
|
1024 Paragraph
|
|
1025 </p>
|
|
1026 <hr />
|
|
1027 <ol><li>Item 1
|
|
1028 <ol start="2"><li>Item 2
|
|
1029 </li></ol></li></ol><table class="wiki">
|
|
1030 <tr><td>Table</td><td>cell
|
|
1031 </td></tr><tr><td>Foo</td><td>Bar</td><td>Baz
|
|
1032 </td></tr></table>
|
|
1033 <p>
|
|
1034 <a class="ext-link" href="http://www.edgewall.com/"><span class="icon">http://www.edgewall.com/</span></a>
|
|
1035 </p>
|
|
1036 ------------------------------
|
|
1037 Paragraph
|
|
1038 ----
|
|
1039 1. Item 1
|
|
1040 2. Item 2
|
|
1041 ||Table||cell||
|
|
1042 ||Foo||Bar||Baz||
|
|
1043 <a class="ext-link" href="http://www.edgewall.com/"><span class="icon">http://www.edgewall.com/</span></a>
|
|
1044 ============================== Lists, indents and table
|
|
1045
|
|
1046 * Bar
|
|
1047 * Foo
|
|
1048
|
|
1049 || Foo || Bar ||
|
|
1050
|
|
1051 || Foo || Bar ||
|
|
1052 ------------------------------
|
|
1053 <ul><li>Bar
|
|
1054 <ul><li>Foo
|
|
1055 </li></ul></li></ul><blockquote>
|
|
1056 <blockquote>
|
|
1057 <table class="wiki">
|
|
1058 <tr><td> Foo </td><td> Bar
|
|
1059 </td></tr></table>
|
|
1060 </blockquote>
|
|
1061 </blockquote>
|
|
1062 <blockquote>
|
|
1063 <table class="wiki">
|
|
1064 <tr><td> Foo </td><td> Bar
|
|
1065 </td></tr></table>
|
|
1066 </blockquote>
|
|
1067 ------------------------------
|
|
1068 * Bar
|
|
1069 * Foo
|
|
1070
|
|
1071 || Foo || Bar ||
|
|
1072
|
|
1073 || Foo || Bar ||
|
|
1074 ============================== "Tabstops" set by lists and quotes
|
|
1075 This is one level deep
|
|
1076
|
|
1077 * Bar
|
|
1078 * Foo
|
|
1079
|
|
1080 Now this should be 2 levels deep as well
|
|
1081
|
|
1082 This is now level 3.
|
|
1083
|
|
1084 Continue on level 2.
|
|
1085
|
|
1086 - but a list always restart at level 1.
|
|
1087 Paragraph.
|
|
1088 ------------------------------
|
|
1089 <blockquote>
|
|
1090 <p>
|
|
1091 This is one level deep
|
|
1092 </p>
|
|
1093 </blockquote>
|
|
1094 <ul><li>Bar
|
|
1095 <ul><li>Foo
|
|
1096 </li></ul></li></ul><blockquote>
|
|
1097 <blockquote>
|
|
1098 <p>
|
|
1099 Now this should be 2 levels deep as well
|
|
1100 </p>
|
|
1101 </blockquote>
|
|
1102 </blockquote>
|
|
1103 <blockquote>
|
|
1104 <blockquote>
|
|
1105 <blockquote>
|
|
1106 <p>
|
|
1107 This is now level 3.
|
|
1108 </p>
|
|
1109 </blockquote>
|
|
1110 </blockquote>
|
|
1111 </blockquote>
|
|
1112 <blockquote>
|
|
1113 <blockquote>
|
|
1114 <p>
|
|
1115 Continue on level 2.
|
|
1116 </p>
|
|
1117 </blockquote>
|
|
1118 </blockquote>
|
|
1119 <ul><li>but a list always restart at level 1.
|
|
1120 </li></ul><p>
|
|
1121 Paragraph.
|
|
1122 </p>
|
|
1123 ------------------------------
|
|
1124 ============================== Citations
|
|
1125 > This is the quoted text
|
|
1126 >> a nested quote
|
|
1127 A comment on the above
|
|
1128 >> start 2nd level
|
|
1129 > first level
|
|
1130 ------------------------------
|
|
1131 <blockquote class="citation">
|
|
1132 <p>
|
|
1133 This is the quoted text
|
|
1134 </p>
|
|
1135 <blockquote class="citation">
|
|
1136 <p>
|
|
1137 a nested quote
|
|
1138 </p>
|
|
1139 </blockquote>
|
|
1140 </blockquote>
|
|
1141 <p>
|
|
1142 A comment on the above
|
|
1143 </p>
|
|
1144 <blockquote class="citation">
|
|
1145 <blockquote class="citation">
|
|
1146 <p>
|
|
1147 start 2nd level
|
|
1148 </p>
|
|
1149 </blockquote>
|
|
1150 <p>
|
|
1151 first level
|
|
1152 </p>
|
|
1153 </blockquote>
|
|
1154 ------------------------------
|
|
1155 > This is the quoted text
|
|
1156 >> a nested quote
|
|
1157 A comment on the above
|
|
1158 >> start 2nd level
|
|
1159 > first level
|