inline_feature.test
1.65 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
Foo *emphasis*.
**Strong** bar.
This is `interpreted text`.
:role:`interpreted text`
`interpreted text`:role:
``inline literals``
This is a regexp: ``[+-]?(\d+(\.\d*)?|\.\d+)``
Usage of |substitution|.
----------------------------------------------------
[
"Foo ",
["inline", [
["punctuation", "*"], ["italic", "emphasis"], ["punctuation", "*"]
]],
".\r\n",
["inline", [
["punctuation", "**"], ["bold", "Strong"], ["punctuation", "**"]
]],
" bar.\r\nThis is ",
["inline", [
["punctuation", "`"], ["interpreted-text", "interpreted text"], ["punctuation", "`"]
]],
".\r\n",
["inline", [
["role", [
["punctuation", ":"], "role", ["punctuation", ":"]
]],
["punctuation", "`"], ["interpreted-text", "interpreted text"], ["punctuation", "`"]
]],
["inline", [
["punctuation", "`"], ["interpreted-text", "interpreted text"], ["punctuation", "`"],
["role", [
["punctuation", ":"], "role", ["punctuation", ":"]
]]
]],
["inline", [
["punctuation", "``"], ["inline-literal", "inline literals"], ["punctuation", "``"]
]],
"\r\nThis is a regexp: ",
["inline", [
["punctuation", "``"], ["inline-literal", "[+-]?(\\d+(\\.\\d*)?|\\.\\d+)"], ["punctuation", "``"]
]],
"\r\nUsage of ",
["inline", [
["punctuation", "|"], ["substitution", "substitution"], ["punctuation", "|"]
]],
"."
]
----------------------------------------------------
Checks for most inline markup: emphasis, bold, interpreted text,
roles, inline literals and substitutions.