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
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
|
Pandoc
Meta { unMeta = fromList [] }
[ Header 1 ( "" , [] , [] ) [ Str "Top-level heading (1)" ]
, Header
2 ( "" , [] , [] ) [ Str "This a test for creole 0.1 (2)" ]
, Header
3 ( "" , [] , [] ) [ Str "This is a Subheading (3)" ]
, Header 4 ( "" , [] , [] ) [ Str "Subsub (4)" ]
, Header 5 ( "" , [] , [] ) [ Str "Subsubsub (5)" ]
, Para
[ Str "The ending equal signs should not be displayed:" ]
, Header 1 ( "" , [] , [] ) [ Str "Top-level heading (1)" ]
, Header
2 ( "" , [] , [] ) [ Str "This a test for creole 0.1 (2)" ]
, Header
3 ( "" , [] , [] ) [ Str "This is a Subheading (3)" ]
, Header 4 ( "" , [] , [] ) [ Str "Subsub (4)" ]
, Header 5 ( "" , [] , [] ) [ Str "Subsubsub (5)" ]
, Para
[ Str "You can make things "
, Strong [ Str "bold" ]
, Str " or "
, Emph [ Str "italic" ]
, Str " or "
, Strong [ Emph [ Str "both" ] ]
, Str " or "
, Emph [ Strong [ Str "both" ] ]
, Str "."
]
, Para
[ Str "Character formatting extends across line breaks: "
, Strong
[ Str
"bold, this is still bold. This line deliberately does not end in star-star."
]
]
, Para
[ Str
"Not bold. Character formatting does not cross paragraph boundaries."
]
, Para
[ Str "You can use "
, Link
( "" , [] , [] )
[ Str "internal links" ]
( "internal links" , "" )
, Str " or "
, Link
( "" , [] , [] )
[ Str "external links" ]
( "http://www.wikicreole.org" , "" )
, Str ", give the link a "
, Link
( "" , [] , [] )
[ Str "different" ]
( "internal links" , "" )
, Str " name."
]
, Para
[ Str "Here's another sentence: This wisdom is taken from "
, Link
( "" , [] , [] )
[ Str "Ward Cunningham's" ]
( "Ward Cunningham's" , "" )
, Str " "
, Link
( "" , [] , [] )
[ Str "Presentation at the Wikisym 06" ]
( "http://www.c2.com/doc/wikisym/WikiSym2006.pdf" , "" )
, Str "."
]
, Para
[ Str "Here's a external link without a description: "
, Link
( "" , [] , [] )
[ Str "http://www.wikicreole.org" ]
( "http://www.wikicreole.org" , "" )
]
, Para
[ Str "Be careful that italic links are rendered properly: "
, Emph
[ Link
( "" , [] , [] )
[ Str "My Book Title" ]
( "http://my.book.example/" , "" )
]
]
, Para
[ Str
"Free links without braces should be rendered as well, like "
, Link
( "" , [] , [] )
[ Str "http://www.wikicreole.org/" ]
( "http://www.wikicreole.org/" , "" )
, Str " and "
, Link
( "" , [] , [] )
[ Str "http://www.wikicreole.org/users/~example" ]
( "http://www.wikicreole.org/users/~example" , "" )
, Str "."
]
, Para
[ Str "Creole1.0 specifies that "
, Link
( "" , [] , [] ) [ Str "http://bar" ] ( "http://bar" , "" )
, Str " and "
, Link
( "" , [] , [] ) [ Str "ftp://bar" ] ( "ftp://bar" , "" )
, Str " should not render italic, something like foo:"
, Emph [ Str "bar should render as italic." ]
]
, Para
[ Str
"You can use this to draw a line to separate the page:"
]
, HorizontalRule
, Para
[ Str
"You can use lists, start it at the first column for now, please..."
]
, Para [ Str "unnumbered lists are like" ]
, BulletList
[ [ Plain [ Str "item a" ] ]
, [ Plain [ Str "item b" ] ]
, [ Plain [ Strong [ Str "bold item c" ] ] ]
]
, Para
[ Str "blank space is also permitted before lists like:" ]
, BulletList
[ [ Plain [ Str "item a" ] ]
, [ Plain [ Str "item b" ] ]
, [ Plain [ Str "item c" ]
, BulletList [ [ Plain [ Str "item c.a" ] ] ]
]
]
, Para [ Str "or you can number them" ]
, OrderedList
( 1 , DefaultStyle , DefaultDelim )
[ [ Plain
[ Link ( "" , [] , [] ) [ Str "item 1" ] ( "item 1" , "" ) ]
]
, [ Plain [ Str "item 2" ] ]
, [ Plain [ Emph [ Str " italic item 3 " ] ]
, OrderedList
( 1 , DefaultStyle , DefaultDelim )
[ [ Plain [ Str "item 3.1" ] ]
, [ Plain [ Str "item 3.2" ] ]
]
]
]
, Para [ Str "up to five levels" ]
, BulletList
[ [ Plain [ Str "1" ]
, BulletList
[ [ Plain [ Str "2" ]
, BulletList
[ [ Plain [ Str "3" ]
, BulletList
[ [ Plain [ Str "4" ]
, BulletList [ [ Plain [ Str "5" ] ] ]
]
]
]
]
]
]
]
]
, BulletList
[ [ Plain [ Str "You can have multiline list items" ] ]
, [ Plain [ Str "this is a second multiline list item" ] ]
]
, Para
[ Str
"You can use nowiki syntax if you would like do stuff like this:"
]
, CodeBlock
( "" , [] , [] )
"Guitar Chord C:\n\n||---|---|---|\n||-0-|---|---|\n||---|---|---|\n||---|-0-|---|\n||---|---|-0-|\n||---|---|---|"
, Para
[ Str "You can also use it inline nowiki "
, Code ( "" , [] , [] ) " in a sentence "
, Str " like this."
]
, Header 1 ( "" , [] , [] ) [ Str "Escapes" ]
, Para
[ Str "Normal Link: "
, Link
( "" , [] , [] )
[ Str "http://wikicreole.org/" ]
( "http://wikicreole.org/" , "" )
, Str
" - now same link, but escaped: http://wikicreole.org/"
]
, Para [ Str "Normal asterisks: **not bold**" ]
, Para [ Str "a tilde alone: ~" ]
, Para [ Str "a tilde escapes itself: ~xxx" ]
, Header 3 ( "" , [] , [] ) [ Str "Creole 0.2" ]
, Para
[ Str
"This should be a flower with the ALT text \"this is a flower\" if your wiki supports ALT text on images:"
]
, Para
[ Image
( "" , [] , [] )
[ Str "here is a red flower" ]
( "Red-Flower.jpg" , "" )
]
, Header 3 ( "" , [] , [] ) [ Str "Creole 0.4" ]
, Para [ Str "Tables are done like this:" ]
, Table
( "" , [] , [] )
(Caption Nothing [])
[ ( AlignDefault , ColWidthDefault )
, ( AlignDefault , ColWidthDefault )
]
(TableHead
( "" , [] , [] )
[ Row
( "" , [] , [] )
[ Cell
( "" , [] , [] )
AlignDefault
(RowSpan 1)
(ColSpan 1)
[ Plain [ Str "header col1" ] ]
, Cell
( "" , [] , [] )
AlignDefault
(RowSpan 1)
(ColSpan 1)
[ Plain [ Str "header col2" ] ]
]
])
[ TableBody
( "" , [] , [] )
(RowHeadColumns 0)
[]
[ Row
( "" , [] , [] )
[ Cell
( "" , [] , [] )
AlignDefault
(RowSpan 1)
(ColSpan 1)
[ Plain [ Str "col1" ] ]
, Cell
( "" , [] , [] )
AlignDefault
(RowSpan 1)
(ColSpan 1)
[ Plain [ Str "col2" ] ]
]
, Row
( "" , [] , [] )
[ Cell
( "" , [] , [] )
AlignDefault
(RowSpan 1)
(ColSpan 1)
[ Plain [ Str "you" ] ]
, Cell
( "" , [] , [] )
AlignDefault
(RowSpan 1)
(ColSpan 1)
[ Plain [ Str "can" ] ]
]
, Row
( "" , [] , [] )
[ Cell
( "" , [] , [] )
AlignDefault
(RowSpan 1)
(ColSpan 1)
[ Plain [ Str "also" ] ]
, Cell
( "" , [] , [] )
AlignDefault
(RowSpan 1)
(ColSpan 1)
[ Plain [ Str "align" , LineBreak , Str "it." ] ]
]
]
]
(TableFoot ( "" , [] , [] ) [])
, Para
[ Str
"You can format an address by simply forcing linebreaks:"
]
, Para
[ Str "My contact dates:"
, LineBreak
, Str "Pone: xyz"
, LineBreak
, Str "Fax: +45"
, LineBreak
, Str "Mobile: abc"
]
, Header 3 ( "" , [] , [] ) [ Str "Creole 0.5" ]
, Table
( "" , [] , [] )
(Caption Nothing [])
[ ( AlignDefault , ColWidthDefault )
, ( AlignDefault , ColWidthDefault )
]
(TableHead
( "" , [] , [] )
[ Row
( "" , [] , [] )
[ Cell
( "" , [] , [] )
AlignDefault
(RowSpan 1)
(ColSpan 1)
[ Plain [ Str "Header title" ] ]
, Cell
( "" , [] , [] )
AlignDefault
(RowSpan 1)
(ColSpan 1)
[ Plain [ Str "Another header title" ] ]
]
])
[ TableBody
( "" , [] , [] )
(RowHeadColumns 0)
[]
[ Row
( "" , [] , [] )
[ Cell
( "" , [] , [] )
AlignDefault
(RowSpan 1)
(ColSpan 1)
[ Plain
[ Code ( "" , [] , [] ) " //not italic text// " ]
]
, Cell
( "" , [] , [] )
AlignDefault
(RowSpan 1)
(ColSpan 1)
[ Plain
[ Code ( "" , [] , [] ) " **not bold text** " ]
]
]
, Row
( "" , [] , [] )
[ Cell
( "" , [] , [] )
AlignDefault
(RowSpan 1)
(ColSpan 1)
[ Plain [ Emph [ Str "italic text" ] ] ]
, Cell
( "" , [] , [] )
AlignDefault
(RowSpan 1)
(ColSpan 1)
[ Plain [ Strong [ Str " bold text " ] ] ]
]
]
]
(TableFoot ( "" , [] , [] ) [])
, Header 3 ( "" , [] , [] ) [ Str "Creole 1.0" ]
, Para
[ Str
"If interwiki links are setup in your wiki, this links to the WikiCreole page about Creole 1.0 test cases: "
, Link
( "" , [] , [] )
[ Str "WikiCreole:Creole1.0TestCases" ]
( "WikiCreole:Creole1.0TestCases" , "" )
, Str "."
]
, HorizontalRule
, Para
[ Str "The above test document was found on "
, Link
( "" , [] , [] )
[ Str "http://www.wikicreole.org/wiki/Creole1.0TestCases" ]
( "http://www.wikicreole.org/wiki/Creole1.0TestCases" , "" )
, Str " and downloaded from "
, Link
( "" , [] , [] )
[ Str
"http://www.wikicreole.org/attach/Creole1.0TestCases/creole1.0test.txt"
]
( "http://www.wikicreole.org/attach/Creole1.0TestCases/creole1.0test.txt"
, ""
)
, Str "."
]
, Para
[ Str
"The Creole Wiki is licensed: Copyright (C) by the contributors. Some rights reserved, license "
, Link
( "" , [] , [] )
[ Str "https://creativecommons.org/licenses/by-sa/1.0/" ]
( "BY-SA" , "" )
, Str "."
]
]
|