image_feature.test
1.47 KB
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
!foo.png!
!bar.jpg(Foo bar)!
!foo.png!:http://prismjs.com
!bar.jpg(Foo bar)!:http://www.example.com
!<foo.png! !>bar.jpg!
!(foo)[en]{border:1px solid #ccc}foo.png!
----------------------------------------------------
[
["phrase", [
["image", [
["punctuation", "!"],
["source", "foo.png"],
["punctuation", "!"]
]],
["image", [
["punctuation", "!"],
["source", "bar.jpg(Foo bar)"],
["punctuation", "!"]
]],
["image", [
["punctuation", "!"],
["source", "foo.png"],
["punctuation", "!"],
["punctuation", ":"],
["url", "http://prismjs.com"]
]],
["image", [
["punctuation", "!"],
["source", "bar.jpg(Foo bar)"],
["punctuation", "!"],
["punctuation", ":"],
["url", "http://www.example.com"]
]]
]],
["phrase", [
["image", [
["punctuation", "!"],
["modifier", [
["punctuation", "<"]
]],
["source", "foo.png"],
["punctuation", "!"]
]],
["image", [
["punctuation", "!"],
["modifier", [
["punctuation", ">"]
]],
["source", "bar.jpg"],
["punctuation", "!"]
]],
["image", [
["punctuation", "!"],
["modifier", [
["punctuation", "("], ["class-id", "foo"], ["punctuation", ")"],
["punctuation", "["], ["lang", "en"], ["punctuation", "]"],
["css", ["{border:1px solid #ccc}"]]
]],
["source", "foo.png"],
["punctuation", "!"]
]]
]]
]
----------------------------------------------------
Checks for images.