Debian Codegraph @

tests/snippets/wikitext/bold-italic.txt

raw
1 ---input---
2 To ''italicize text'', put two consecutive apostrophes on each side of it.
3
4 Three apostrophes each side will '''bold the text'''.
5
6 Five consecutive apostrophes on each side (two for italics plus three for bold) produces '''''bold italics'''''.
7
8 '''''Italic and bold formatting''''' works correctly only within a single line.
9
10 ''''''foo''''''
11
12 L''''''Étranger'''''
13
14 '' a ''' a ''' a ''
15
16 '' a ''' a '' a '''
17
18 ''''' a '' a '''
19 ''''' a ''' a ''
20
21 ''''' a
22 a
23
24 ''a[[b|c]]d
25 a[[b|''c]]d
26 ''a{{b|c}}d
27 a{{b|''c}}d
28
29 ---tokens---
30 'To' Text
31 ' ' Text
32 "''" Generic.Emph
33 'italicize' Generic.Emph
34 ' ' Generic.Emph
35 'text' Generic.Emph
36 "''" Generic.Emph
37 ',' Text
38 ' ' Text
39 'put' Text
40 ' ' Text
41 'two' Text
42 ' ' Text
43 'consecutive' Text
44 ' ' Text
45 'apostrophes' Text
46 ' ' Text
47 'on' Text
48 ' ' Text
49 'each' Text
50 ' ' Text
51 'side' Text
52 ' ' Text
53 'of' Text
54 ' ' Text
55 'it' Text
56 '.' Text
57 '\n' Text
58
59 '\n' Text
60
61 'Three' Text
62 ' ' Text
63 'apostrophes' Text
64 ' ' Text
65 'each' Text
66 ' ' Text
67 'side' Text
68 ' ' Text
69 'will' Text
70 ' ' Text
71 "'''" Generic.Strong
72 'bold' Generic.Strong
73 ' ' Generic.Strong
74 'the' Generic.Strong
75 ' ' Generic.Strong
76 'text' Generic.Strong
77 "'''" Generic.Strong
78 '.' Text
79 '\n' Text
80
81 '\n' Text
82
83 'Five' Text
84 ' ' Text
85 'consecutive' Text
86 ' ' Text
87 'apostrophes' Text
88 ' ' Text
89 'on' Text
90 ' ' Text
91 'each' Text
92 ' ' Text
93 'side' Text
94 ' ' Text
95 '(' Text
96 'two' Text
97 ' ' Text
98 'for' Text
99 ' ' Text
100 'italics' Text
101 ' ' Text
102 'plus' Text
103 ' ' Text
104 'three' Text
105 ' ' Text
106 'for' Text
107 ' ' Text
108 'bold' Text
109 ')' Text
110 ' ' Text
111 'produces' Text
112 ' ' Text
113 "''" Generic.Emph
114 "'''" Generic.EmphStrong
115 'bold' Generic.EmphStrong
116 ' ' Generic.EmphStrong
117 'italics' Generic.EmphStrong
118 "'''" Generic.EmphStrong
119 "''" Generic.Emph
120 '.' Text
121 '\n' Text
122
123 '\n' Text
124
125 "''" Generic.Emph
126 "'''" Generic.EmphStrong
127 'Italic' Generic.EmphStrong
128 ' ' Generic.EmphStrong
129 'and' Generic.EmphStrong
130 ' ' Generic.EmphStrong
131 'bold' Generic.EmphStrong
132 ' ' Generic.EmphStrong
133 'formatting' Generic.EmphStrong
134 "'''" Generic.EmphStrong
135 "''" Generic.Emph
136 ' ' Text
137 'works' Text
138 ' ' Text
139 'correctly' Text
140 ' ' Text
141 'only' Text
142 ' ' Text
143 'within' Text
144 ' ' Text
145 'a' Text
146 ' ' Text
147 'single' Text
148 ' ' Text
149 'line' Text
150 '.' Text
151 '\n' Text
152
153 '\n' Text
154
155 "'" Text
156 "''" Generic.Emph
157 "'''" Generic.EmphStrong
158 'foo' Generic.EmphStrong
159 "'" Generic.EmphStrong
160 "'''" Generic.EmphStrong
161 "''" Generic.Emph
162 '\n' Text
163
164 '\n' Text
165
166 'L' Text
167 "'" Text
168 "''" Generic.Emph
169 "'''" Generic.EmphStrong
170 'Étranger' Generic.EmphStrong
171 "'''" Generic.EmphStrong
172 "''" Generic.Emph
173 '\n' Text
174
175 '\n' Text
176
177 "''" Generic.Emph
178 ' ' Generic.Emph
179 'a' Generic.Emph
180 ' ' Generic.Emph
181 "'''" Generic.EmphStrong
182 ' ' Generic.EmphStrong
183 'a' Generic.EmphStrong
184 ' ' Generic.EmphStrong
185 "'''" Generic.EmphStrong
186 ' ' Generic.Emph
187 'a' Generic.Emph
188 ' ' Generic.Emph
189 "''" Generic.Emph
190 '\n' Text
191
192 '\n' Text
193
194 "''" Generic.Emph
195 ' ' Generic.Emph
196 'a' Generic.Emph
197 ' ' Generic.Emph
198 "'''" Generic.EmphStrong
199 ' ' Generic.EmphStrong
200 'a' Generic.EmphStrong
201 ' ' Generic.EmphStrong
202 "''" Generic.EmphStrong
203 ' ' Generic.Strong
204 'a' Generic.Strong
205 ' ' Generic.Strong
206 "'''" Generic.Strong
207 '\n' Text
208
209 '\n' Text
210
211 "''" Generic.Emph
212 "'''" Generic.EmphStrong
213 ' ' Generic.EmphStrong
214 'a' Generic.EmphStrong
215 ' ' Generic.EmphStrong
216 "''" Generic.EmphStrong
217 ' ' Generic.Strong
218 'a' Generic.Strong
219 ' ' Generic.Strong
220 "'''" Generic.Strong
221 '\n' Text
222
223 "''" Generic.Emph
224 "'''" Generic.EmphStrong
225 ' ' Generic.EmphStrong
226 'a' Generic.EmphStrong
227 ' ' Generic.EmphStrong
228 "'''" Generic.EmphStrong
229 ' ' Generic.Emph
230 'a' Generic.Emph
231 ' ' Generic.Emph
232 "''" Generic.Emph
233 '\n' Text
234
235 '\n' Text
236
237 "''" Generic.Emph
238 "'''" Generic.EmphStrong
239 ' ' Generic.EmphStrong
240 'a' Generic.EmphStrong
241 '\n' Text
242
243 'a' Text
244 '\n' Text
245
246 '\n' Text
247
248 "''" Generic.Emph
249 'a' Generic.Emph
250 '[[' Punctuation
251 'b' Name.Tag
252 '|' Punctuation
253 'c' Text
254 ']]' Punctuation
255 'd' Generic.Emph
256 '\n' Text
257
258 'a' Text
259 '[[' Punctuation
260 'b' Name.Tag
261 '|' Punctuation
262 "''" Generic.Emph
263 'c' Generic.Emph
264 '' Punctuation
265 ']]' Punctuation
266 'd' Text
267 '\n' Text
268
269 "''" Generic.Emph
270 'a' Generic.Emph
271 '' Punctuation
272 '{{' Punctuation
273 'b' Name.Tag
274 '|' Punctuation
275 'c' Text
276 '}}' Punctuation
277 'd' Text
278 '\n' Text
279
280 'a' Text
281 '{{' Punctuation
282 'b' Name.Tag
283 '|' Punctuation
284 "''" Generic.Emph
285 'c' Generic.Emph
286 '' Punctuation
287 '}}' Punctuation
288 'd' Text
289 '\n' Text