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 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135
|
local $/;
require 't/runtests.pl';
runtests( data => <DATA>, dialect => 'WakkaWiki' );
close DATA;
__DATA__
h1
__H__
<h1>one</h1>
__W__
====== one ======
__NEXT__
h2
__H__
<h2>two</h2>
__W__
===== two =====
__NEXT__
h3
__H__
<h3>three</h3>
__W__
==== three ====
__NEXT__
h4
__H__
<h4>four</h4>
__W__
=== four ===
__NEXT__
h5
__H__
<h5>five</h5>
__W__
== five ==
__NEXT__
h6
__H__
<h6>six</h6>
__W__
== six ==
__NEXT__
bold
__H__
<b>bold text</b>
__W__
**bold text**
__NEXT__
strong
__H__
<strong>strong text</strong>
__W__
**strong text**
__NEXT__
italic
__H__
<i>italic text</i>
__W__
//italic text//
__NEXT__
emphasized
__H__
<em>em text</em>
__W__
//em text//
__NEXT__
ul
__H__
<ul>
<li>one
<li>two
<li>three
</ul>
__W__
- one
- two
- three
__NEXT__
ol
__H__
<ol>
<li>one
<li>two
<li>three
</ol>
__W__
1) one
2) two
3) three
__NEXT__
nested list
__H__
<ul>
<li> one
<ol> <li>1 <li>2 <li>3 </ol>
</li>
<li> two
<ol> <li>1 <li>2 <li>3 </ol>
</li>
<li>three
</ul>
__W__
- one
1) 1
2) 2
3) 3
- two
1) 1
2) 2
3) 3
- three
__NEXT__
image
__H__
<img src="http://www.test.com/image.png" />
__W__
""<img src="http://www.test.com/image.png" />""
__NEXT__
image (w/ attrs)
__H__
<img src="http://www.test.com/image.png" alt="my image" width="50" height="45" />
__W__
""<img src="http://www.test.com/image.png" alt="my image" width="50" height="45" />""
__NEXT__
image (strip attrs)
__H__
<img src="http://www.test.com/image.png" alt="my image" width="50" height="45" onclick="alert('hello')" />
__W__
""<img src="http://www.test.com/image.png" alt="my image" width="50" height="45" />""
__NEXT__
image (escape attrs)
__H__
<img src="http://www.test.com/image.png" alt="my < thing" />
__W__
""<img src="http://www.test.com/image.png" alt="my < thing" />""
|