Skip to content

Commit 8774d08

Browse files
committed
adjust expected files with div wrap for tables
1 parent eff15a4 commit 8774d08

File tree

3 files changed

+151
-135
lines changed

3 files changed

+151
-135
lines changed

src/test/suite/fixtures/expected/issues.html

Lines changed: 40 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,20 @@ <h1><strong>Issues</strong></h1>
1515
Table without heading
1616
</div>
1717
<div><h4>Table without heading</h4></div>
18-
<table>
19-
<tbody>
20-
<tr>
21-
<td>test</td>
22-
<td>test</td>
23-
</tr>
24-
<tr>
25-
<td>simple table</td>
26-
<td>two</td>
27-
</tr>
28-
</tbody>
29-
</table>
18+
<div>
19+
<table>
20+
<tbody>
21+
<tr>
22+
<td>test</td>
23+
<td>test</td>
24+
</tr>
25+
<tr>
26+
<td>simple table</td>
27+
<td>two</td>
28+
</tr>
29+
</tbody>
30+
</table>
31+
</div>
3032
<div>
3133
<a href="https://github.com/denco/vscode-confluence-markup/issues/6">#6</a>:
3234
Intenting
@@ -192,30 +194,32 @@ <h1><strong>Issues</strong></h1>
192194
<a href="https://github.com/denco/vscode-confluence-markup/issues/38">#38</a>
193195
Preview is not working using links inside a table
194196
</div>
195-
<table>
196-
<tbody>
197-
<tr>
198-
<th>heading 1</th>
199-
<th>heading 2</th>
200-
<th>heading 3</th>
201-
</tr>
202-
<tr>
203-
<td>cell A1</td>
204-
<td>cell A2</td>
205-
<td>cell A3</td>
206-
</tr>
207-
<tr>
208-
<td>cell B1</td>
209-
<td>cell B2</td>
210-
<td>cell B3</td>
211-
</tr>
212-
<tr>
213-
<td><a href="www.example.com">example</a></td>
214-
<td><a href="www.google.com">google</a></td>
215-
<td><a href="https://code.visualstudio.com/">vscode</a></td>
216-
</tr>
217-
</tbody>
218-
</table>
197+
<div>
198+
<table>
199+
<tbody>
200+
<tr>
201+
<th>heading 1</th>
202+
<th>heading 2</th>
203+
<th>heading 3</th>
204+
</tr>
205+
<tr>
206+
<td>cell A1</td>
207+
<td>cell A2</td>
208+
<td>cell A3</td>
209+
</tr>
210+
<tr>
211+
<td>cell B1</td>
212+
<td>cell B2</td>
213+
<td>cell B3</td>
214+
</tr>
215+
<tr>
216+
<td><a href="www.example.com">example</a></td>
217+
<td><a href="www.google.com">google</a></td>
218+
<td><a href="https://code.visualstudio.com/">vscode</a></td>
219+
</tr>
220+
</tbody>
221+
</table>
222+
</div>
219223
<div>
220224
<a href="https://github.com/denco/vscode-confluence-markup/issues/39">#39</a>
221225
Local image preview
Lines changed: 90 additions & 80 deletions
Original file line numberDiff line numberDiff line change
@@ -1,86 +1,96 @@
11
<div><h1>Tables</h1></div>
22
<div><h2>Column heading</h2></div>
3-
<table>
4-
<tbody>
5-
<tr>
6-
<th>header c1</th>
7-
<th>header c2</th>
8-
</tr>
9-
<tr>
10-
<td>data 1.1</td>
11-
<td>data 1.2</td>
12-
</tr>
13-
<tr>
14-
<td>data 2.1</td>
15-
<td>data 2.2</td>
16-
</tr>
17-
</tbody>
18-
</table>
3+
<div>
4+
<table>
5+
<tbody>
6+
<tr>
7+
<th>header c1</th>
8+
<th>header c2</th>
9+
</tr>
10+
<tr>
11+
<td>data 1.1</td>
12+
<td>data 1.2</td>
13+
</tr>
14+
<tr>
15+
<td>data 2.1</td>
16+
<td>data 2.2</td>
17+
</tr>
18+
</tbody>
19+
</table>
20+
</div>
1921
<div><h2>Row heading</h2></div>
20-
<table>
21-
<tbody>
22-
<tr>
23-
<th>header r1</th>
24-
<td>data 1.1</td>
25-
<td>data 1.2</td>
26-
</tr>
27-
<tr>
28-
<th>header r2</th>
29-
<td>data 2.1</td>
30-
<td>data 2.2</td>
31-
</tr>
32-
<tr>
33-
<th>header r3</th>
34-
<td>data 3.1</td>
35-
<td>data 3.2</td>
36-
</tr>
37-
</tbody>
38-
</table>
22+
<div>
23+
<table>
24+
<tbody>
25+
<tr>
26+
<th>header r1</th>
27+
<td>data 1.1</td>
28+
<td>data 1.2</td>
29+
</tr>
30+
<tr>
31+
<th>header r2</th>
32+
<td>data 2.1</td>
33+
<td>data 2.2</td>
34+
</tr>
35+
<tr>
36+
<th>header r3</th>
37+
<td>data 3.1</td>
38+
<td>data 3.2</td>
39+
</tr>
40+
</tbody>
41+
</table>
42+
</div>
3943
<div><h2>Column and row heading</h2></div>
40-
<table>
41-
<tbody>
42-
<tr>
43-
<th></th>
44-
<th>header c1</th>
45-
<th>header c2</th>
46-
</tr>
47-
<tr>
48-
<th>header r1</th>
49-
<td>data 1.1</td>
50-
<td>data 1.2</td>
51-
</tr>
52-
<tr>
53-
<th>header r2</th>
54-
<td>data 2.1</td>
55-
<td>data 2.2</td>
56-
</tr>
57-
</tbody>
58-
</table>
44+
<div>
45+
<table>
46+
<tbody>
47+
<tr>
48+
<th></th>
49+
<th>header c1</th>
50+
<th>header c2</th>
51+
</tr>
52+
<tr>
53+
<th>header r1</th>
54+
<td>data 1.1</td>
55+
<td>data 1.2</td>
56+
</tr>
57+
<tr>
58+
<th>header r2</th>
59+
<td>data 2.1</td>
60+
<td>data 2.2</td>
61+
</tr>
62+
</tbody>
63+
</table>
64+
</div>
5965
<div><h2>Without heading</h2></div>
60-
<table>
61-
<tbody>
62-
<tr>
63-
<td>data 1.1</td>
64-
<td>data 1.2</td>
65-
</tr>
66-
<tr>
67-
<td>data 2.1</td>
68-
<td>data 2.2</td>
69-
</tr>
70-
</tbody>
71-
</table>
66+
<div>
67+
<table>
68+
<tbody>
69+
<tr>
70+
<td>data 1.1</td>
71+
<td>data 1.2</td>
72+
</tr>
73+
<tr>
74+
<td>data 2.1</td>
75+
<td>data 2.2</td>
76+
</tr>
77+
</tbody>
78+
</table>
79+
</div>
7280
<div><h2>Table with nested macros (not supported yet)</h2></div>
73-
<table>
74-
<tbody>
75-
<tr>
76-
<th>Heading 1</th>
77-
<th>Heading 2</th>
78-
</tr>
79-
<tr>
80-
<td>
81-
<strong> Item 1<br /></strong> Item 2<br />* Item 3
82-
</td>
83-
<td># Item 1 <br /># Item 2<br /># Item 3</td>
84-
</tr>
85-
</tbody>
86-
</table>
81+
<div>
82+
<table>
83+
<tbody>
84+
<tr>
85+
<th>Heading 1</th>
86+
<th>Heading 2</th>
87+
</tr>
88+
<tr>
89+
<td>
90+
<strong> Item 1<br /></strong> Item 2<br />* Item 3
91+
</td>
92+
<td># Item 1 <br /># Item 2<br /># Item 3</td>
93+
</tr>
94+
</tbody>
95+
</table>
96+
</div>

src/test/suite/fixtures/expected/test.html

Lines changed: 21 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -180,25 +180,27 @@ <h2><strong>lists:</strong></h2>
180180
<div>
181181
<h2><strong>table:</strong></h2>
182182
</div>
183-
<table>
184-
<tbody>
185-
<tr>
186-
<th>heading 1</th>
187-
<th>heading 2</th>
188-
<th>heading 3</th>
189-
</tr>
190-
<tr>
191-
<td>cell A1</td>
192-
<td>cell A2</td>
193-
<td>cell A3</td>
194-
</tr>
195-
<tr>
196-
<td>cell B1</td>
197-
<td>cell B2</td>
198-
<td>cell B3</td>
199-
</tr>
200-
</tbody>
201-
</table>
183+
<div>
184+
<table>
185+
<tbody>
186+
<tr>
187+
<th>heading 1</th>
188+
<th>heading 2</th>
189+
<th>heading 3</th>
190+
</tr>
191+
<tr>
192+
<td>cell A1</td>
193+
<td>cell A2</td>
194+
<td>cell A3</td>
195+
</tr>
196+
<tr>
197+
<td>cell B1</td>
198+
<td>cell B2</td>
199+
<td>cell B3</td>
200+
</tr>
201+
</tbody>
202+
</table>
203+
</div>
202204
<div><hr /></div>
203205
<div>
204206
<h2><strong>code:</strong></h2>

0 commit comments

Comments
 (0)