Skip to content

Commit d8c09c1

Browse files
committed
add tests
1 parent cbcda26 commit d8c09c1

25 files changed

+374
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
<table>
2+
<thead>
3+
<tr>
4+
<th>abc</th>
5+
<th>def</th>
6+
</tr>
7+
</thead>
8+
<tbody>
9+
<tr>
10+
<td>bar</td>
11+
<td>foo</td>
12+
</tr>
13+
<tr>
14+
<td>baz</td>
15+
<td>boo</td>
16+
</tr>
17+
</tbody>
18+
</table>
19+
<blockquote><p>a blockquote</p></blockquote>
20+
<table>
21+
<thead>
22+
<tr>
23+
<th>abc</th>
24+
<th>def</th>
25+
</tr>
26+
</thead>
27+
<tbody>
28+
<tr>
29+
<td>bar</td>
30+
<td>foo</td>
31+
</tr>
32+
<tr>
33+
<td>baz</td>
34+
<td>boo</td>
35+
</tr>
36+
</tbody>
37+
</table>
38+
<blockquote><p>a blockquote</p></blockquote>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
abc | def
2+
--- | ---
3+
bar | foo
4+
baz | boo
5+
> a blockquote
6+
7+
abc | def
8+
--- | ---
9+
bar | foo
10+
baz | boo
11+
> a blockquote
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
<table>
2+
<thead>
3+
<tr>
4+
<th>abc</th>
5+
<th>def</th>
6+
</tr>
7+
</thead>
8+
<tbody>
9+
<tr>
10+
<td>bar</td>
11+
<td>foo</td>
12+
</tr>
13+
<tr>
14+
<td>baz</td>
15+
<td>boo</td>
16+
</tr>
17+
</tbody>
18+
</table>
19+
<blockquote><p>a blockquote</p></blockquote>
20+
<table>
21+
<thead>
22+
<tr>
23+
<th>abc</th>
24+
<th>def</th>
25+
</tr>
26+
</thead>
27+
<tbody>
28+
<tr>
29+
<td>bar</td>
30+
<td>foo</td>
31+
</tr>
32+
<tr>
33+
<td>baz</td>
34+
<td>boo</td>
35+
</tr>
36+
</tbody>
37+
</table>
38+
<blockquote><p>a blockquote</p></blockquote>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
| abc | def |
2+
| --- | --- |
3+
| bar | foo |
4+
| baz | boo |
5+
> a blockquote
6+
7+
| abc | def |
8+
| --- | --- |
9+
| bar | foo |
10+
| baz | boo |
11+
> a blockquote
+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<table>
2+
<thead>
3+
<tr>
4+
<th>abc</th>
5+
<th>def</th>
6+
</tr>
7+
</thead>
8+
<tbody>
9+
<tr>
10+
<td>bar</td>
11+
<td>foo</td>
12+
</tr>
13+
<tr>
14+
<td>baz</td>
15+
<td>boo</td>
16+
</tr>
17+
</tbody>
18+
</table>
19+
<pre><code>a simple
20+
*indented* code block
21+
</code></pre>
+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
abc | def
2+
--- | ---
3+
bar | foo
4+
baz | boo
5+
a simple
6+
*indented* code block
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<table>
2+
<thead>
3+
<tr>
4+
<th>abc</th>
5+
<th>def</th>
6+
</tr>
7+
</thead>
8+
<tbody>
9+
<tr>
10+
<td>bar</td>
11+
<td>foo</td>
12+
</tr>
13+
<tr>
14+
<td>baz</td>
15+
<td>boo</td>
16+
</tr>
17+
</tbody>
18+
</table>
19+
<pre><code>foobar()</code></pre>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
abc | def
2+
--- | ---
3+
bar | foo
4+
baz | boo
5+
```
6+
foobar()
7+
```
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<table>
2+
<thead>
3+
<tr>
4+
<th>abc</th>
5+
<th>def</th>
6+
</tr>
7+
</thead>
8+
<tbody>
9+
<tr>
10+
<td>bar</td>
11+
<td>foo</td>
12+
</tr>
13+
<tr>
14+
<td>baz</td>
15+
<td>boo</td>
16+
</tr>
17+
</tbody>
18+
</table>
19+
<h1 id="title">title</h1>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
abc | def
2+
--- | ---
3+
bar | foo
4+
baz | boo
5+
# title
+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<table>
2+
<thead>
3+
<tr>
4+
<th>abc</th>
5+
<th>def</th>
6+
</tr>
7+
</thead>
8+
<tbody>
9+
<tr>
10+
<td>bar</td>
11+
<td>foo</td>
12+
</tr>
13+
<tr>
14+
<td>baz</td>
15+
<td>boo</td>
16+
</tr>
17+
</tbody>
18+
</table>
19+
<hr>
+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
abc | def
2+
--- | ---
3+
bar | foo
4+
baz | boo
5+
___
+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<table>
2+
<thead>
3+
<tr>
4+
<th>abc</th>
5+
<th>def</th>
6+
</tr>
7+
</thead>
8+
<tbody>
9+
<tr>
10+
<td>bar</td>
11+
<td>foo</td>
12+
</tr>
13+
<tr>
14+
<td>baz</td>
15+
<td>boo</td>
16+
</tr>
17+
</tbody>
18+
</table>
19+
<div>Some HTML</div>
+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
abc | def
2+
--- | ---
3+
bar | foo
4+
baz | boo
5+
<div>Some HTML</div>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<table>
2+
<thead>
3+
<tr>
4+
<th>abc</th>
5+
<th>def</th>
6+
</tr>
7+
</thead>
8+
<tbody>
9+
<tr>
10+
<td>bar</td>
11+
<td>foo</td>
12+
</tr>
13+
<tr>
14+
<td>baz</td>
15+
<td>boo</td>
16+
</tr>
17+
<tr>
18+
<td><code>hello</code></td>
19+
<td></td>
20+
</tr>
21+
</tbody>
22+
</table>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
abc | def
2+
--- | ---
3+
bar | foo
4+
baz | boo
5+
`hello`
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<table>
2+
<thead>
3+
<tr>
4+
<th>abc</th>
5+
<th>def</th>
6+
</tr>
7+
</thead>
8+
<tbody>
9+
<tr>
10+
<td>bar</td>
11+
<td>foo</td>
12+
</tr>
13+
<tr>
14+
<td>baz</td>
15+
<td>boo</td>
16+
</tr>
17+
<tr>
18+
<td>title</td>
19+
<td></td>
20+
</tr>
21+
<tr>
22+
<td>=====</td>
23+
<td></td>
24+
</tr>
25+
</tbody>
26+
</table>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
abc | def
2+
--- | ---
3+
bar | foo
4+
baz | boo
5+
title
6+
=====

test/specs/new/lheading_following_table.html

+8-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,13 @@
1414
<td>baz</td>
1515
<td>boo</td>
1616
</tr>
17+
<tr>
18+
<td>title</td>
19+
<td></td>
20+
</tr>
21+
<tr>
22+
<td>=====</td>
23+
<td></td>
24+
</tr>
1725
</tbody>
1826
</table>
19-
<h1 id="title">title</h1>
+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<table>
2+
<thead>
3+
<tr>
4+
<th>abc</th>
5+
<th>def</th>
6+
</tr>
7+
</thead>
8+
<tbody>
9+
<tr>
10+
<td>bar</td>
11+
<td>foo</td>
12+
</tr>
13+
<tr>
14+
<td>baz</td>
15+
<td>boo</td>
16+
</tr>
17+
</tbody>
18+
</table>
19+
<ul>
20+
<li>foo</li>
21+
<li>bar</li>
22+
<li>baz</li>
23+
</ul>
+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
abc | def
2+
--- | ---
3+
bar | foo
4+
baz | boo
5+
- foo
6+
- bar
7+
- baz
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<table>
2+
<thead>
3+
<tr>
4+
<th>abc</th>
5+
<th>def</th>
6+
</tr>
7+
</thead>
8+
<tbody>
9+
<tr>
10+
<td>bar</td>
11+
<td>foo</td>
12+
</tr>
13+
<tr>
14+
<td>baz</td>
15+
<td>boo</td>
16+
</tr>
17+
<tr>
18+
<td><strong>strong</strong></td>
19+
<td></td>
20+
</tr>
21+
</tbody>
22+
</table>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
abc | def
2+
--- | ---
3+
bar | foo
4+
baz | boo
5+
**strong**
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<table>
2+
<thead>
3+
<tr>
4+
<th>abc</th>
5+
<th>def</th>
6+
</tr>
7+
</thead>
8+
<tbody>
9+
<tr>
10+
<td>bar</td>
11+
<td>foo</td>
12+
</tr>
13+
<tr>
14+
<td>baz</td>
15+
<td>boo</td>
16+
</tr>
17+
<tr>
18+
<td>hello</td>
19+
<td></td>
20+
</tr>
21+
</tbody>
22+
</table>

0 commit comments

Comments
 (0)