Debian Codegraph @

tests/snippets/wikitext/html.txt

raw
1 ---input---
2 <div class="center" style="width: auto; margin-left: auto; margin-right: auto;">Centered text</div>
3
4 <blockquote>
5 The '''blockquote''' tag will indent both margins when needed instead of the left margin only as the colon does.
6 </blockquote>
7
8 <div>
9 #123
10 :456
11 ----
12 </div>
13
14 Use <small >small text</small> only when necessary.
15
16 To match, for example, the font-size used in an image caption, the "small" tag can also be used to
17 <small style="font-size:87%;">reduce a text's font-size to 87%</small>.
18
19 Better not use <big>big text</big>, unless <small>it's <big>within</big> small</small> text.
20
21 x<sub>1</sub> x<sub>2</sub> x<sub>3</sub>
22
23 function <code>int m2()</code> is nice.
24
25 You can <del>indicate deleted material</del> and <ins>inserted material</ins>.
26
27 <div ></div >
28
29 <span <!-- this is a comment --> ></span>
30
31 <span class="citation {{{Citation class|{{{Citation type|}}}}}}"></span>
32
33 <a></a>
34
35 ---tokens---
36 '<' Punctuation
37 'div' Name.Tag
38 ' ' Text.Whitespace
39 'class' Name.Attribute
40 '=' Operator
41 '"' Literal.String.Double
42 'center' Literal.String.Double
43 '"' Literal.String.Double
44 ' ' Text.Whitespace
45 'style' Name.Attribute
46 '=' Operator
47 '"' Literal.String.Double
48 'width' Literal.String.Double
49 ':' Literal.String.Double
50 ' ' Literal.String.Double
51 'auto' Literal.String.Double
52 ';' Literal.String.Double
53 ' ' Literal.String.Double
54 'margin' Literal.String.Double
55 '-' Literal.String.Double
56 'left' Literal.String.Double
57 ':' Literal.String.Double
58 ' ' Literal.String.Double
59 'auto' Literal.String.Double
60 ';' Literal.String.Double
61 ' ' Literal.String.Double
62 'margin' Literal.String.Double
63 '-' Literal.String.Double
64 'right' Literal.String.Double
65 ':' Literal.String.Double
66 ' ' Literal.String.Double
67 'auto' Literal.String.Double
68 ';' Literal.String.Double
69 '"' Literal.String.Double
70 '>' Punctuation
71 'Centered' Text
72 ' ' Text
73 'text' Text
74 '</' Punctuation
75 'div' Name.Tag
76 '>' Punctuation
77 '\n' Text
78
79 '\n' Text
80
81 '<' Punctuation
82 'blockquote' Name.Tag
83 '>' Punctuation
84 '\n' Text
85
86 'The' Text
87 ' ' Text
88 "'''" Generic.Strong
89 'blockquote' Generic.Strong
90 "'''" Generic.Strong
91 ' ' Text
92 'tag' Text
93 ' ' Text
94 'will' Text
95 ' ' Text
96 'indent' Text
97 ' ' Text
98 'both' Text
99 ' ' Text
100 'margins' Text
101 ' ' Text
102 'when' Text
103 ' ' Text
104 'needed' Text
105 ' ' Text
106 'instead' Text
107 ' ' Text
108 'of' Text
109 ' ' Text
110 'the' Text
111 ' ' Text
112 'left' Text
113 ' ' Text
114 'margin' Text
115 ' ' Text
116 'only' Text
117 ' ' Text
118 'as' Text
119 ' ' Text
120 'the' Text
121 ' ' Text
122 'colon' Text
123 ' ' Text
124 'does' Text
125 '.' Text
126 '\n' Text
127
128 '</' Punctuation
129 'blockquote' Name.Tag
130 '>' Punctuation
131 '\n' Text
132
133 '\n' Text
134
135 '<' Punctuation
136 'div' Name.Tag
137 '>' Punctuation
138 '\n' Text
139
140 '#' Keyword
141 '123' Text
142 '\n' Text
143
144 ':' Keyword
145 '456' Text
146 '\n' Text
147
148 '----' Keyword
149 '\n' Text
150
151 '</' Punctuation
152 'div' Name.Tag
153 '>' Punctuation
154 '\n' Text
155
156 '\n' Text
157
158 'Use' Text
159 ' ' Text
160 '<' Punctuation
161 'small' Name.Tag
162 ' >' Punctuation
163 'small' Text
164 ' ' Text
165 'text' Text
166 '</' Punctuation
167 'small' Name.Tag
168 '>' Punctuation
169 ' ' Text
170 'only' Text
171 ' ' Text
172 'when' Text
173 ' ' Text
174 'necessary' Text
175 '.' Text
176 '\n' Text
177
178 '\n' Text
179
180 'To' Text
181 ' ' Text
182 'match' Text
183 ',' Text
184 ' ' Text
185 'for' Text
186 ' ' Text
187 'example' Text
188 ',' Text
189 ' ' Text
190 'the' Text
191 ' ' Text
192 'font' Text
193 '-' Text
194 'size' Text
195 ' ' Text
196 'used' Text
197 ' ' Text
198 'in' Text
199 ' ' Text
200 'an' Text
201 ' ' Text
202 'image' Text
203 ' ' Text
204 'caption' Text
205 ',' Text
206 ' ' Text
207 'the' Text
208 ' ' Text
209 '"' Text
210 'small' Text
211 '"' Text
212 ' ' Text
213 'tag' Text
214 ' ' Text
215 'can' Text
216 ' ' Text
217 'also' Text
218 ' ' Text
219 'be' Text
220 ' ' Text
221 'used' Text
222 ' ' Text
223 'to' Text
224 '\n' Text
225
226 '<' Punctuation
227 'small' Name.Tag
228 ' ' Text.Whitespace
229 'style' Name.Attribute
230 '=' Operator
231 '"' Literal.String.Double
232 'font' Literal.String.Double
233 '-' Literal.String.Double
234 'size' Literal.String.Double
235 ':' Literal.String.Double
236 '87' Literal.String.Double
237 '%' Literal.String.Double
238 ';' Literal.String.Double
239 '"' Literal.String.Double
240 '>' Punctuation
241 'reduce' Text
242 ' ' Text
243 'a' Text
244 ' ' Text
245 'text' Text
246 "'" Text
247 's' Text
248 ' ' Text
249 'font' Text
250 '-' Text
251 'size' Text
252 ' ' Text
253 'to' Text
254 ' ' Text
255 '87' Text
256 '%' Text
257 '</' Punctuation
258 'small' Name.Tag
259 '>' Punctuation
260 '.' Text
261 '\n' Text
262
263 '\n' Text
264
265 'Better' Text
266 ' ' Text
267 'not' Text
268 ' ' Text
269 'use' Text
270 ' ' Text
271 '<' Punctuation
272 'big' Name.Tag
273 '>' Punctuation
274 'big' Text
275 ' ' Text
276 'text' Text
277 '</' Punctuation
278 'big' Name.Tag
279 '>' Punctuation
280 ',' Text
281 ' ' Text
282 'unless' Text
283 ' ' Text
284 '<' Punctuation
285 'small' Name.Tag
286 '>' Punctuation
287 'it' Text
288 "'" Text
289 's' Text
290 ' ' Text
291 '<' Punctuation
292 'big' Name.Tag
293 '>' Punctuation
294 'within' Text
295 '</' Punctuation
296 'big' Name.Tag
297 '>' Punctuation
298 ' ' Text
299 'small' Text
300 '</' Punctuation
301 'small' Name.Tag
302 '>' Punctuation
303 ' ' Text
304 'text' Text
305 '.' Text
306 '\n' Text
307
308 '\n' Text
309
310 'x' Text
311 '<' Punctuation
312 'sub' Name.Tag
313 '>' Punctuation
314 '1' Text
315 '</' Punctuation
316 'sub' Name.Tag
317 '>' Punctuation
318 ' ' Text
319 'x' Text
320 '<' Punctuation
321 'sub' Name.Tag
322 '>' Punctuation
323 '2' Text
324 '</' Punctuation
325 'sub' Name.Tag
326 '>' Punctuation
327 ' ' Text
328 'x' Text
329 '<' Punctuation
330 'sub' Name.Tag
331 '>' Punctuation
332 '3' Text
333 '</' Punctuation
334 'sub' Name.Tag
335 '>' Punctuation
336 '\n' Text
337
338 '\n' Text
339
340 'function' Text
341 ' ' Text
342 '<' Punctuation
343 'code' Name.Tag
344 '>' Punctuation
345 'int' Text
346 ' ' Text
347 'm2' Text
348 '(' Text
349 ')' Text
350 '</' Punctuation
351 'code' Name.Tag
352 '>' Punctuation
353 ' ' Text
354 'is' Text
355 ' ' Text
356 'nice' Text
357 '.' Text
358 '\n' Text
359
360 '\n' Text
361
362 'You' Text
363 ' ' Text
364 'can' Text
365 ' ' Text
366 '<' Punctuation
367 'del' Name.Tag
368 '>' Punctuation
369 'indicate' Text
370 ' ' Text
371 'deleted' Text
372 ' ' Text
373 'material' Text
374 '</' Punctuation
375 'del' Name.Tag
376 '>' Punctuation
377 ' ' Text
378 'and' Text
379 ' ' Text
380 '<' Punctuation
381 'ins' Name.Tag
382 '>' Punctuation
383 'inserted' Text
384 ' ' Text
385 'material' Text
386 '</' Punctuation
387 'ins' Name.Tag
388 '>' Punctuation
389 '.' Text
390 '\n' Text
391
392 '\n' Text
393
394 '<' Punctuation
395 'div' Name.Tag
396 ' >' Punctuation
397 '</' Punctuation
398 'div' Name.Tag
399 ' ' Text.Whitespace
400 '>' Punctuation
401 '\n' Text
402
403 '\n' Text
404
405 '<' Punctuation
406 'span' Name.Tag
407 ' ' Text.Whitespace
408 '<!-- this is a comment -->' Comment.Multiline
409 ' >' Punctuation
410 '</' Punctuation
411 'span' Name.Tag
412 '>' Punctuation
413 '\n' Text
414
415 '\n' Text
416
417 '<' Punctuation
418 'span' Name.Tag
419 ' ' Text.Whitespace
420 'class' Name.Attribute
421 '=' Operator
422 '"' Literal.String.Double
423 'citation' Literal.String.Double
424 ' ' Literal.String.Double
425 '{{{' Punctuation
426 'Citation class' Name.Variable
427 '|' Punctuation
428 '{{{' Punctuation
429 'Citation type' Name.Variable
430 '|' Punctuation
431 '}}}' Punctuation
432 '}}}' Punctuation
433 '"' Literal.String.Double
434 '>' Punctuation
435 '</' Punctuation
436 'span' Name.Tag
437 '>' Punctuation
438 '\n' Text
439
440 '\n' Text
441
442 '<' Text
443 'a' Text
444 '>' Text
445 '<' Text
446 '/' Text
447 'a' Text
448 '>' Text
449 '\n' Text