Debian Codegraph @

tests/snippets/wikitext/extlink.txt

raw
1 ---input---
2 [https://www.wikipedia.org Wikipedia]
3
4 [https://www.wikipedia.org]
5
6 https://www.wikipedia.org
7
8 <span class="plainlinks">[https://www.wikipedia.org Wikipedia]</span>
9
10 Single square brackets holding
11 [text without a HTTP URL] are
12 preserved, but single square
13 brackets containing a URL are
14 treated as being an external
15 [https://example.com/ Web link].
16
17 [https://www.wikipedia.org ''Wiki'''''pedi'''a]
18
19 tel:1145141919810
20
21 [tel:1145141919810 telephone me]
22
23 [https://www.google.com [[a]]]
24
25 https://www.example.com
26
27 [https://www.exampke.com]
28
29 [//example.com]
30
31 [//example.com a b c]
32
33 [//example.com a ''b'' c <nowiki>[//example.com a ''b'' c]</nowiki><includeonly/><div class="a"/> d]
34
35 [{{fullurl:Help:Wiki markup|action=edit}} edit]
36
37 ---tokens---
38 '[' Punctuation
39 'https://www.wikipedia.org' Name.Label
40 ' ' Text.Whitespace
41 'Wikipedia' Text
42 ']' Punctuation
43 '\n' Text
44
45 '\n' Text
46
47 '[' Punctuation
48 'https://www.wikipedia.org' Name.Label
49 ']' Punctuation
50 '\n' Text
51
52 '\n' Text
53
54 'https://www.wikipedia.org' Name.Label
55 '\n' Text
56
57 '\n' Text
58
59 '<' Punctuation
60 'span' Name.Tag
61 ' ' Text.Whitespace
62 'class' Name.Attribute
63 '=' Operator
64 '"' Literal.String.Double
65 'plainlinks' Literal.String.Double
66 '"' Literal.String.Double
67 '>' Punctuation
68 '[' Punctuation
69 'https://www.wikipedia.org' Name.Label
70 ' ' Text.Whitespace
71 'Wikipedia' Text
72 ']' Punctuation
73 '</' Punctuation
74 'span' Name.Tag
75 '>' Punctuation
76 '\n' Text
77
78 '\n' Text
79
80 'Single' Text
81 ' ' Text
82 'square' Text
83 ' ' Text
84 'brackets' Text
85 ' ' Text
86 'holding' Text
87 '\n' Text
88
89 '[' Text
90 'text' Text
91 ' ' Text
92 'without' Text
93 ' ' Text
94 'a' Text
95 ' ' Text
96 'HTTP' Text
97 ' ' Text
98 'URL' Text
99 ']' Text
100 ' ' Text
101 'are' Text
102 '\n' Text
103
104 'preserved' Text
105 ',' Text
106 ' ' Text
107 'but' Text
108 ' ' Text
109 'single' Text
110 ' ' Text
111 'square' Text
112 '\n' Text
113
114 'brackets' Text
115 ' ' Text
116 'containing' Text
117 ' ' Text
118 'a' Text
119 ' ' Text
120 'URL' Text
121 ' ' Text
122 'are' Text
123 '\n' Text
124
125 'treated' Text
126 ' ' Text
127 'as' Text
128 ' ' Text
129 'being' Text
130 ' ' Text
131 'an' Text
132 ' ' Text
133 'external' Text
134 '\n' Text
135
136 '[' Punctuation
137 'https://example.com/' Name.Label
138 ' ' Text.Whitespace
139 'Web' Text
140 ' ' Text
141 'link' Text
142 ']' Punctuation
143 '.' Text
144 '\n' Text
145
146 '\n' Text
147
148 '[' Punctuation
149 'https://www.wikipedia.org' Name.Label
150 ' ' Text.Whitespace
151 "''" Generic.Emph
152 'Wiki' Generic.Emph
153 "''" Generic.Emph
154 "'''" Generic.Strong
155 'pedi' Generic.Strong
156 "'''" Generic.Strong
157 'a' Text
158 ']' Punctuation
159 '\n' Text
160
161 '\n' Text
162
163 'tel:1145141919810' Name.Label
164 '\n' Text
165
166 '\n' Text
167
168 '[' Punctuation
169 'tel:1145141919810' Name.Label
170 ' ' Text.Whitespace
171 'telephone' Text
172 ' ' Text
173 'me' Text
174 ']' Punctuation
175 '\n' Text
176
177 '\n' Text
178
179 '[' Punctuation
180 'https://www.google.com' Name.Label
181 ' ' Text.Whitespace
182 '[[' Punctuation
183 'a' Name.Tag
184 ']]' Punctuation
185 ']' Punctuation
186 '\n' Text
187
188 '\n' Text
189
190 'https://www.example.com' Name.Label
191 '\n' Text
192
193 '\n' Text
194
195 '[' Punctuation
196 'https://www.exampke.com' Name.Label
197 ']' Punctuation
198 '\n' Text
199
200 '\n' Text
201
202 '[' Punctuation
203 '//example.com' Name.Label
204 ']' Punctuation
205 '\n' Text
206
207 '\n' Text
208
209 '[' Punctuation
210 '//example.com' Name.Label
211 ' ' Text.Whitespace
212 'a' Text
213 ' ' Text
214 'b' Text
215 ' ' Text
216 'c' Text
217 ']' Punctuation
218 '\n' Text
219
220 '\n' Text
221
222 '[' Punctuation
223 '//example.com' Name.Label
224 ' ' Text.Whitespace
225 'a' Text
226 ' ' Text
227 "''" Generic.Emph
228 'b' Generic.Emph
229 "''" Generic.Emph
230 ' ' Text
231 'c' Text
232 ' ' Text
233 '<' Punctuation
234 'nowiki' Name.Tag
235 '>' Punctuation
236 '[' Text
237 '/' Text
238 '/' Text
239 'example' Text
240 '.' Text
241 'com' Text
242 ' ' Text
243 'a' Text
244 ' ' Text
245 "'" Text
246 "'" Text
247 'b' Text
248 "'" Text
249 "'" Text
250 ' ' Text
251 'c' Text
252 ']' Text
253 '</' Punctuation
254 'nowiki' Name.Tag
255 '>' Punctuation
256 '<' Punctuation
257 'includeonly' Name.Tag
258 '/>' Punctuation
259 '<' Punctuation
260 'div' Name.Tag
261 ' ' Text.Whitespace
262 'class' Name.Attribute
263 '=' Operator
264 '"' Literal.String.Double
265 'a' Literal.String.Double
266 '"' Literal.String.Double
267 '/>' Punctuation
268 ' ' Text
269 'd' Text
270 ']' Punctuation
271 '\n' Text
272
273 '\n' Text
274
275 '[' Text
276 '{{' Punctuation
277 'fullurl' Name.Function
278 ':' Punctuation
279 'Help' Text
280 ':' Text
281 'Wiki' Text
282 ' ' Text
283 'markup' Text
284 '|' Punctuation
285 'action' Name.Label
286 '=' Operator
287 'edit' Text
288 '}}' Punctuation
289 ' ' Text
290 'edit' Text
291 ']' Text
292 '\n' Text