File: wikkawiki.t

package info (click to toggle)
libhtml-wikiconverter-wikkawiki-perl 0.50-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 108 kB
  • sloc: perl: 240; makefile: 2
file content (209 lines) | stat: -rw-r--r-- 2,581 bytes parent folder | download | duplicates (3)
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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
local $/;
require 't/runtests.pl';
runtests( data => <DATA>, dialect => 'WikkaWiki' );
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__
ul (nested)
__H__
<ul>
  <li>one
    <ul>
      <li>one.one</li>
      <li>one.two</li>
      <li>one.three</li>
    </ul>
  </li>
  <li>two
    <ul>
      <li>two.one</li>
      <li>two.two</li>
    </ul>
  </li>
  <li>three</li>
  <li>four</li>
</ul>
__W__
~- one
~~- one.one
~~- one.two
~~- one.three
~- two
~~- two.one
~~- two.two
~- three
~- four
__NEXT__
ol
__H__
<ol>
  <li>one
  <li>two
  <li>three
</ol>
__W__
~1) one
~1) two
~1) three
__NEXT__
ol (nested)
__H__
<ol>
  <li>one
    <ol>
      <li>one.one</li>
      <li>one.two</li>
      <li>one.three</li>
    </ol>
  </li>
  <li>two
    <ol>
      <li>two.one</li>
      <li>two.two</li>
    </ol>
  </li>
  <li>three</li>
  <li>four</li>
</ol>
__W__
~1) one
~~1) one.one
~~1) one.two
~~1) one.three
~1) two
~~1) two.one
~~1) two.two
~1) three
~1) four
__NEXT__
ul/ol (nested)
__H__
<ul>
  <li>one
    <ol>
      <li>one.one</li>
      <li>one.two</li>
      <li>one.three</li>
    </ol>
  </li>
  <li>two
    <ol>
      <li>two.one</li>
      <li>two.two</li>
    </ol>
  </li>
  <li>three</li>
  <li>four</li>
</ul>
__W__
~- one
~~1) one.one
~~1) one.two
~~1) one.three
~- two
~~1) two.one
~~1) two.two
~- three
~- four
__NEXT__
table
__H__
<table border="1" class="thingy">
  <tr>
    <td>one</td>
    <td><em>two</em></td>
    <td>three</td>
  </tr>
  <tr>
    <td>four</td>
    <td>five</td>
    <td><b>six</b></td>
  </tr>
</table>
__W__
|| one || //two// || three ||
|| four || five || **six** ||
__NEXT__
image (internal)
__H__
<img src="images/logo.png" alt="Logo" title="Our logo" />
__W__
{{image alt="Logo" title="Our logo" src="images/logo.png"}}
__NEXT__
image (external)
__H__
<img src="http://www.example.com/logo.png" alt="Logo" title="Example logo" />
__W__
{{image alt="Logo" title="Example logo" src="http://www.example.com/logo.png"}}