File: tikiwiki.t

package info (click to toggle)
libhtml-wikiconverter-tikiwiki-perl 0.50-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 116 kB
  • sloc: perl: 230; makefile: 2
file content (180 lines) | stat: -rw-r--r-- 2,270 bytes parent folder | download | duplicates (2)
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
local $/;
require 't/runtests.pl';
runtests( data => <DATA>, dialect => 'TikiWiki', wiki_uri => 'http://www.test.com/wiki/' );
close DATA;

__DATA__
bold
__H__
<b>bold</b>
__W__
__bold__
__NEXT__
strong
__H__
<strong>strong</strong>
__W__
__strong__
__NEXT__
italic
__H__
<i>italic</i>
__W__
''italic''
__NEXT__
em
__H__
<em>em</em>
__W__
''em''
__NEXT__
center
__H__
<center>center</center>
__W__
::center::
__NEXT__
code
__H__
<code>code</code>
__W__
-+code+-
__NEXT__
tt
__H__
<tt>tt</tt>
__W__
-+tt+-
__NEXT__
underline
__H__
<u>underline</u>
__W__
===underline===
__NEXT__
internal link
__H__
<a href="http://www.test.com/wiki/Sandbox">Sandbox</a>
__W__
((Sandbox))
__NEXT__
internal link (camel case)
__H__
<a href="http://www.test.com/wiki/SandBox">SandBox</a>
__W__
SandBox
__NEXT__
internal link (alt text)
__H__
<a href="http://www.test.com/wiki/Sandbox">my sandbox</a>
__W__
((Sandbox|my sandbox))
__NEXT__
external link
__H__
<a href="http://www.google.com">http://www.google.com</a>
__W__
[http://www.google.com]
__NEXT__
external link (alt text)
__H__
<a href="http://www.google.com">Google</a>
__W__
[http://www.google.com|Google]
__NEXT__
external link (mailto)
__H__
<a href="mailto:test@test.com">Test User</a>
__W__
[mailto:test@test.com|Test User]
__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" width="10" height="20" />
__W__
{img src=http://www.test.com/image.png width=10 height=20}
__NEXT__
list (ul)
__H__
<ul>
  <li>one
  <li>two
  <li>three
</ul>
__W__
* one
* two
* three
__NEXT__
list (ol)
__H__
<ol>
  <li>one
  <li>two
  <li>three
</ol>
__W__
# one
# two
# three
__NEXT__
list (nested ul/ul)
__H__
<ul>
  <li>1
    <ul>
      <li>1.a
      <li>1.b
    </ul>
  </li>
  <li>2
  <li>3
    <ul>
      <li>3.a
      <li>3.b
      <li>3.c
    </ul>
  </li>
</ul>
__W__
* 1
** 1.a
** 1.b
* 2
* 3
** 3.a
** 3.b
** 3.c
__NEXT__
list (nested ul/ol)
__H__
<ul>
  <li>one
    <ol><li>1<li>2<li>3</ol>
  <li>two
  <li>three
    <ol><li>1<li>2<li>3</ol>
  </li>
</ul>
__W__
* one
## 1
## 2
## 3
* two
* three
## 1
## 2
## 3
__NEXT__
dl/dt/dd
__H__
<dl><dt>term</dt><dd>definition</dd></dl>
__W__
; term : definition