Skip to content

Commit 8cc733d

Browse files
committed
update gfm specs to 0.29
1 parent d78c66e commit 8cc733d

File tree

2 files changed

+33
-39
lines changed

2 files changed

+33
-39
lines changed
Lines changed: 32 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,153 +1,147 @@
11
[
22
{
33
"section": "Tables",
4-
"html": "<table>\n<thead>\n<tr>\n<th>foo</th>\n<th>bar</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>baz</td>\n<td>bim</td>\n</tr></tbody></table>",
4+
"html": "<table>\n<thead>\n<tr>\n<th>foo</th>\n<th>bar</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>baz</td>\n<td>bim</td>\n</tr>\n</tbody>\n</table>",
55
"markdown": "| foo | bar |\n| --- | --- |\n| baz | bim |",
6-
"example": 191
6+
"example": "198"
77
},
88
{
99
"section": "Tables",
10-
"html": "<table>\n<thead>\n<tr>\n<th align=\"center\">abc</th>\n<th align=\"right\">defghi</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td align=\"center\">bar</td>\n<td align=\"right\">baz</td>\n</tr></tbody></table>",
10+
"html": "<table>\n<thead>\n<tr>\n<th align=\"center\">abc</th>\n<th align=\"right\">defghi</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td align=\"center\">bar</td>\n<td align=\"right\">baz</td>\n</tr>\n</tbody>\n</table>",
1111
"markdown": "| abc | defghi |\n:-: | -----------:\nbar | baz",
12-
"example": 192
12+
"example": "199"
1313
},
1414
{
1515
"section": "Tables",
16-
"html": "<table>\n<thead>\n<tr>\n<th>f|oo</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>b <code>|</code> az</td>\n</tr>\n<tr>\n<td>b <strong>|</strong> im</td>\n</tr></tbody></table>",
16+
"html": "<table>\n<thead>\n<tr>\n<th>f|oo</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>b <code>|</code> az</td>\n</tr>\n<tr>\n<td>b <strong>|</strong> im</td>\n</tr>\n</tbody>\n</table>",
1717
"markdown": "| f\\|oo |\n| ------ |\n| b `\\|` az |\n| b **\\|** im |",
18-
"example": 193
18+
"example": "200"
1919
},
2020
{
2121
"section": "Tables",
22-
"html": "<table>\n<thead>\n<tr>\n<th>abc</th>\n<th>def</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>bar</td>\n<td>baz</td>\n</tr></tbody></table>\n<blockquote>\n<p>bar</p>\n</blockquote>",
22+
"html": "<table>\n<thead>\n<tr>\n<th>abc</th>\n<th>def</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>bar</td>\n<td>baz</td>\n</tr>\n</tbody>\n</table>\n<blockquote>\n<p>bar</p>\n</blockquote>",
2323
"markdown": "| abc | def |\n| --- | --- |\n| bar | baz |\n> bar",
24-
"example": 194
24+
"example": "201"
2525
},
2626
{
2727
"section": "Tables",
28-
"html": "<table>\n<thead>\n<tr>\n<th>abc</th>\n<th>def</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>bar</td>\n<td>baz</td>\n</tr>\n<tr>\n<td>bar</td>\n<td></td>\n</tr></tbody></table>\n<p>bar</p>",
28+
"html": "<table>\n<thead>\n<tr>\n<th>abc</th>\n<th>def</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>bar</td>\n<td>baz</td>\n</tr>\n<tr>\n<td>bar</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n<p>bar</p>",
2929
"markdown": "| abc | def |\n| --- | --- |\n| bar | baz |\nbar\n\nbar",
30-
"example": 195
30+
"example": "202"
3131
},
3232
{
3333
"section": "Tables",
3434
"html": "<p>| abc | def |\n| --- |\n| bar |</p>",
3535
"markdown": "| abc | def |\n| --- |\n| bar |",
36-
"example": 196
36+
"example": "203"
3737
},
3838
{
3939
"section": "Tables",
40-
"html": "<table>\n<thead>\n<tr>\n<th>abc</th>\n<th>def</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>bar</td>\n<td></td>\n</tr>\n<tr>\n<td>bar</td>\n<td>baz</td>\n</tr></tbody></table>",
40+
"html": "<table>\n<thead>\n<tr>\n<th>abc</th>\n<th>def</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>bar</td>\n<td></td>\n</tr>\n<tr>\n<td>bar</td>\n<td>baz</td>\n</tr>\n</tbody>\n</table>",
4141
"markdown": "| abc | def |\n| --- | --- |\n| bar |\n| bar | baz | boo |",
42-
"example": 197
42+
"example": "204"
4343
},
4444
{
4545
"section": "Tables",
46-
"html": "<table>\n<thead>\n<tr>\n<th>abc</th>\n<th>def</th>\n</tr>\n</thead></table>",
46+
"html": "<table>\n<thead>\n<tr>\n<th>abc</th>\n<th>def</th>\n</tr>\n</thead>\n</table>",
4747
"markdown": "| abc | def |\n| --- | --- |",
48-
"example": 198
48+
"example": "205"
4949
},
5050
{
5151
"section": "Task list items",
5252
"html": "<ul>\n<li><input disabled=\"\" type=\"checkbox\"> foo</li>\n<li><input checked=\"\" disabled=\"\" type=\"checkbox\"> bar</li>\n</ul>",
5353
"markdown": "- [ ] foo\n- [x] bar",
54-
"example": 272
54+
"example": "279"
5555
},
5656
{
5757
"section": "Task list items",
5858
"html": "<ul>\n<li><input checked=\"\" disabled=\"\" type=\"checkbox\"> foo\n<ul>\n<li><input disabled=\"\" type=\"checkbox\"> bar</li>\n<li><input checked=\"\" disabled=\"\" type=\"checkbox\"> baz</li>\n</ul>\n</li>\n<li><input disabled=\"\" type=\"checkbox\"> bim</li>\n</ul>",
5959
"markdown": "- [x] foo\n - [ ] bar\n - [x] baz\n- [ ] bim",
60-
"example": 273
60+
"example": "280"
6161
},
6262
{
6363
"section": "Strikethrough",
6464
"html": "<p><del>Hi</del> Hello, world!</p>",
65-
"markdown": "~Hi~ Hello, world!",
66-
"example": 469
67-
},
68-
{
69-
"section": "Strikethrough",
70-
"html": "<p>This <del>text</del> is <del>curious</del>.</p>",
71-
"markdown": "This ~text~~~~ is ~~~~curious~.",
72-
"example": 470
65+
"markdown": "~~Hi~~ Hello, world!",
66+
"example": "491"
7367
},
7468
{
7569
"section": "Strikethrough",
7670
"html": "<p>This ~~has a</p>\n<p>new paragraph~~.</p>",
7771
"markdown": "This ~~has a\n\nnew paragraph~~.",
78-
"example": 471
72+
"example": "492"
7973
},
8074
{
8175
"section": "Autolinks",
8276
"html": "<p><a href=\"http://www.commonmark.org\">www.commonmark.org</a></p>",
8377
"markdown": "www.commonmark.org",
84-
"example": 597
78+
"example": "621"
8579
},
8680
{
8781
"section": "Autolinks",
8882
"html": "<p>Visit <a href=\"http://www.commonmark.org/help\">www.commonmark.org/help</a> for more information.</p>",
8983
"markdown": "Visit www.commonmark.org/help for more information.",
90-
"example": 598
84+
"example": "622"
9185
},
9286
{
9387
"section": "Autolinks",
9488
"html": "<p>Visit <a href=\"http://www.commonmark.org\">www.commonmark.org</a>.</p>\n<p>Visit <a href=\"http://www.commonmark.org/a.b\">www.commonmark.org/a.b</a>.</p>",
9589
"markdown": "Visit www.commonmark.org.\n\nVisit www.commonmark.org/a.b.",
96-
"example": 599
90+
"example": "623"
9791
},
9892
{
9993
"section": "Autolinks",
10094
"html": "<p><a href=\"http://www.google.com/search?q=Markup+(business)\">www.google.com/search?q=Markup+(business)</a></p>\n<p>(<a href=\"http://www.google.com/search?q=Markup+(business)\">www.google.com/search?q=Markup+(business)</a>)</p>",
10195
"markdown": "www.google.com/search?q=Markup+(business)\n\n(www.google.com/search?q=Markup+(business))",
102-
"example": 600
96+
"example": "624"
10397
},
10498
{
10599
"section": "Autolinks",
106100
"html": "<p><a href=\"http://www.google.com/search?q=(business))+ok\">www.google.com/search?q=(business))+ok</a></p>",
107101
"markdown": "www.google.com/search?q=(business))+ok",
108-
"example": 601
102+
"example": "625"
109103
},
110104
{
111105
"section": "Autolinks",
112106
"html": "<p><a href=\"http://www.google.com/search?q=commonmark&amp;hl=en\">www.google.com/search?q=commonmark&amp;hl=en</a></p>\n<p><a href=\"http://www.google.com/search?q=commonmark\">www.google.com/search?q=commonmark</a>&amp;hl;</p>",
113107
"markdown": "www.google.com/search?q=commonmark&hl=en\n\nwww.google.com/search?q=commonmark&hl;",
114-
"example": 602
108+
"example": "626"
115109
},
116110
{
117111
"section": "Autolinks",
118112
"html": "<p><a href=\"http://www.commonmark.org/he\">www.commonmark.org/he</a>&lt;lp</p>",
119113
"markdown": "www.commonmark.org/he<lp",
120-
"example": 603
114+
"example": "627"
121115
},
122116
{
123117
"section": "Autolinks",
124118
"html": "<p><a href=\"http://commonmark.org\">http://commonmark.org</a></p>\n<p>(Visit <a href=\"https://encrypted.google.com/search?q=Markup+(business)\">https://encrypted.google.com/search?q=Markup+(business)</a>)</p>\n<p>Anonymous FTP is available at <a href=\"ftp://foo.bar.baz\">ftp://foo.bar.baz</a>.</p>",
125119
"markdown": "http://commonmark.org\n\n(Visit https://encrypted.google.com/search?q=Markup+(business))\n\nAnonymous FTP is available at ftp://foo.bar.baz.",
126-
"example": 604
120+
"example": "628"
127121
},
128122
{
129123
"section": "Autolinks",
130124
"html": "<p><a href=\"mailto:[email protected]\">[email protected]</a></p>",
131125
"markdown": "[email protected]",
132-
"example": 605
126+
"example": "629"
133127
},
134128
{
135129
"section": "Autolinks",
136130
"html": "<p>hello@mail+xyz.example isn't valid, but <a href=\"mailto:[email protected]\">[email protected]</a> is.</p>",
137131
"markdown": "hello@mail+xyz.example isn't valid, but [email protected] is.",
138-
"example": 606
132+
"example": "630"
139133
},
140134
{
141135
"section": "Autolinks",
142136
"html": "<p><a href=\"mailto:[email protected]\">[email protected]</a></p>\n<p><a href=\"mailto:[email protected]\">[email protected]</a>.</p>\n<p>[email protected]</p>\n<p>[email protected]_</p>",
143137
144-
"example": 607
138+
"example": "631"
145139
},
146140
{
147141
"section": "Disallowed Raw HTML",
148142
"html": "<p><strong> &lt;title> &lt;style> <em></p>\n<blockquote>\n &lt;xmp> is disallowed. &lt;XMP> is also disallowed.\n</blockquote>",
149143
"markdown": "<strong> <title> <style> <em>\n\n<blockquote>\n <xmp> is disallowed. <XMP> is also disallowed.\n</blockquote>",
150-
"example": 629,
144+
"example": "653",
151145
"shouldFail": true
152146
}
153147
]

test/specs/run-spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,5 @@ function runSpecs(title, file, options) {
4848
});
4949
};
5050

51-
runSpecs('GFM 0.28', './gfm/gfm.0.28.json', {gfm: true});
51+
runSpecs('GFM 0.29', './gfm/gfm.0.29.json', {gfm: true});
5252
runSpecs('CommonMark 0.29', './commonmark/commonmark.0.29.json', {headerIds: false});

0 commit comments

Comments
 (0)