link_feature.test
1020 Bytes
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
"Foo bar":http://prismjs.com
"Baz":foo
"Foobar":link-ref
"(foo)[en]{color:blue;}Foo":bar
----------------------------------------------------
[
["phrase", [
["link", [
["punctuation", "\""],
["text", "Foo bar"],
["punctuation", "\""], ["punctuation", ":"],
["url", "http://prismjs.com"]
]],
["link", [
["punctuation", "\""],
["text", "Baz"],
["punctuation", "\""], ["punctuation", ":"],
["url", "foo"]
]],
["link", [
["punctuation", "\""],
["text", "Foobar"],
["punctuation", "\""], ["punctuation", ":"],
["url", "link-ref"]
]],
["link", [
["punctuation", "\""],
["modifier", [
["punctuation", "("], ["class-id", "foo"], ["punctuation", ")"],
["punctuation", "["], ["lang", "en"], ["punctuation", "]"],
["css", ["{color:blue;}"]]
]],
["text", "Foo"],
["punctuation", "\""], ["punctuation", ":"],
["url", "bar"]
]]
]]
]
----------------------------------------------------
Checks for links.