-
-
Notifications
You must be signed in to change notification settings - Fork 561
Expand file tree
/
Copy pathcanonical-data.json
More file actions
173 lines (173 loc) · 5.53 KB
/
canonical-data.json
File metadata and controls
173 lines (173 loc) · 5.53 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
{
"exercise": "markdown",
"comments": [
"Markdown is a shorthand for creating HTML from text strings.",
"Per the description, this is a refactoring exercise.",
"The expectation is that the stub file has a poorly written but working implementation."
],
"cases": [
{
"uuid": "e75c8103-a6b8-45d9-84ad-e68520545f6e",
"description": "parses normal text as a paragraph",
"property": "parse",
"input": {
"markdown": "This will be a paragraph"
},
"expected": "<p>This will be a paragraph</p>"
},
{
"uuid": "69a4165d-9bf8-4dd7-bfdc-536eaca80a6a",
"description": "parsing italics",
"property": "parse",
"input": {
"markdown": "_This will be italic_"
},
"expected": "<p><em>This will be italic</em></p>"
},
{
"uuid": "ec345a1d-db20-4569-a81a-172fe0cad8a1",
"description": "parsing bold text",
"property": "parse",
"input": {
"markdown": "__This will be bold__"
},
"expected": "<p><strong>This will be bold</strong></p>"
},
{
"uuid": "51164ed4-5641-4909-8fab-fbaa9d37d5a8",
"description": "mixed normal, italics and bold text",
"property": "parse",
"input": {
"markdown": "This will _be_ __mixed__"
},
"expected": "<p>This will <em>be</em> <strong>mixed</strong></p>"
},
{
"uuid": "ad85f60d-0edd-4c6a-a9b1-73e1c4790d15",
"description": "with h1 header level",
"property": "parse",
"input": {
"markdown": "# This will be an h1"
},
"expected": "<h1>This will be an h1</h1>"
},
{
"uuid": "d0f7a31f-6935-44ac-8a9a-1e8ab16af77f",
"description": "with h2 header level",
"property": "parse",
"input": {
"markdown": "## This will be an h2"
},
"expected": "<h2>This will be an h2</h2>"
},
{
"uuid": "9df3f500-0622-4696-81a7-d5babd9b5f49",
"description": "with h3 header level",
"property": "parse",
"input": {
"markdown": "### This will be an h3"
},
"expected": "<h3>This will be an h3</h3>"
},
{
"uuid": "50862777-a5e8-42e9-a3b8-4ba6fcd0ed03",
"description": "with h4 header level",
"property": "parse",
"input": {
"markdown": "#### This will be an h4"
},
"expected": "<h4>This will be an h4</h4>"
},
{
"uuid": "ee1c23ac-4c86-4f2a-8b9c-403548d4ab82",
"description": "with h5 header level",
"property": "parse",
"input": {
"markdown": "##### This will be an h5"
},
"expected": "<h5>This will be an h5</h5>"
},
{
"uuid": "13b5f410-33f5-44f0-a6a7-cfd4ab74b5d5",
"description": "with h6 header level",
"property": "parse",
"input": {
"markdown": "###### This will be an h6"
},
"expected": "<h6>This will be an h6</h6>"
},
{
"uuid": "6dca5d10-5c22-4e2a-ac2b-bd6f21e61939",
"description": "with h7 header level",
"property": "parse",
"input": {
"markdown": "####### This will not be an h7"
},
"expected": "####### This will not be an h7"
},
{
"uuid": "81c0c4db-435e-4d77-860d-45afacdad810",
"reimplements": "6dca5d10-5c22-4e2a-ac2b-bd6f21e61939",
"description": "h7 header level is a paragraph",
"property": "parse",
"input": {
"markdown": "####### This will not be an h7"
},
"expected": "<p>####### This will not be an h7</p>"
},
{
"uuid": "25288a2b-8edc-45db-84cf-0b6c6ee034d6",
"description": "unordered lists",
"property": "parse",
"input": {
"markdown": "* Item 1\n* Item 2"
},
"expected": "<ul><li>Item 1</li><li>Item 2</li></ul>"
},
{
"uuid": "7bf92413-df8f-4de8-9184-b724f363c3da",
"description": "With a little bit of everything",
"property": "parse",
"input": {
"markdown": "# Header!\n* __Bold Item__\n* _Italic Item_"
},
"expected": "<h1>Header!</h1><ul><li><strong>Bold Item</strong></li><li><em>Italic Item</em></li></ul>"
},
{
"uuid": "0b3ed1ec-3991-4b8b-8518-5cb73d4a64fe",
"description": "with markdown symbols in the header text that should not be interpreted",
"property": "parse",
"input": {
"markdown": "# This is a header with # and * in the text"
},
"expected": "<h1>This is a header with # and * in the text</h1>"
},
{
"uuid": "113a2e58-78de-4efa-90e9-20972224d759",
"description": "with markdown symbols in the list item text that should not be interpreted",
"property": "parse",
"input": {
"markdown": "* Item 1 with a # in the text\n* Item 2 with * in the text"
},
"expected": "<ul><li>Item 1 with a # in the text</li><li>Item 2 with * in the text</li></ul>"
},
{
"uuid": "e65e46e2-17b7-4216-b3ac-f44a1b9bcdb4",
"description": "with markdown symbols in the paragraph text that should not be interpreted",
"property": "parse",
"input": {
"markdown": "This is a paragraph with # and * in the text"
},
"expected": "<p>This is a paragraph with # and * in the text</p>"
},
{
"uuid": "f0bbbbde-0f52-4c0c-99ec-be4c60126dd4",
"description": "unordered lists close properly with preceding and following lines",
"property": "parse",
"input": {
"markdown": "# Start a list\n* Item 1\n* Item 2\nEnd a list"
},
"expected": "<h1>Start a list</h1><ul><li>Item 1</li><li>Item 2</li></ul><p>End a list</p>"
}
]
}