mirror of
https://github.com/showdownjs/showdown.git
synced 2024-03-22 13:30:55 +08:00
table extension new test cases:
+ larger table + equals as header separators
This commit is contained in:
parent
caa98a8dde
commit
b9f38acb18
48
test/extensions/table/large.html
Normal file
48
test/extensions/table/large.html
Normal file
|
@ -0,0 +1,48 @@
|
|||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th id="first_header" style="text-align:left;"> First Header </th>
|
||||
<th id="second_header" style="text-align:left;"> Second Header </th>
|
||||
<th id="third_header" style="text-align:left;"> Third Header </th>
|
||||
<th id="fourth_header" style="text-align:left;"> Fourth Header </th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="text-align:left;"> Row 1 Cell 1 </td>
|
||||
<td style="text-align:left;"> Row 1 Cell 2 </td>
|
||||
<td style="text-align:left;"> Row 1 Cell 3 </td>
|
||||
<td style="text-align:left;"> Row 1 Cell 4 </td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td style="text-align:left;"> Row 2 Cell 1 </td>
|
||||
<td style="text-align:left;"> Row 2 Cell 2 </td>
|
||||
<td style="text-align:left;"> Row 2 Cell 3 </td>
|
||||
<td style="text-align:left;"> Row 2 Cell 4 </td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td style="text-align:left;"> Row 3 Cell 1 </td>
|
||||
<td style="text-align:left;"> Row 3 Cell 2 </td>
|
||||
<td style="text-align:left;"> Row 3 Cell 3 </td>
|
||||
<td style="text-align:left;"> Row 3 Cell 4 </td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td style="text-align:left;"> Row 4 Cell 1 </td>
|
||||
<td style="text-align:left;"> Row 4 Cell 2 </td>
|
||||
<td style="text-align:left;"> Row 4 Cell 3 </td>
|
||||
<td style="text-align:left;"> Row 4 Cell 4 </td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td style="text-align:left;"> Row 5 Cell 1 </td>
|
||||
<td style="text-align:left;"> Row 5 Cell 2 </td>
|
||||
<td style="text-align:left;"> Row 5 Cell 3 </td>
|
||||
<td style="text-align:left;"> Row 5 Cell 4 </td>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
7
test/extensions/table/large.md
Normal file
7
test/extensions/table/large.md
Normal file
|
@ -0,0 +1,7 @@
|
|||
| First Header | Second Header | Third Header | Fourth Header |
|
||||
| ------------- | ------------- | ------------ | ------------- |
|
||||
| Row 1 Cell 1 | Row 1 Cell 2 | Row 1 Cell 3 | Row 1 Cell 4 |
|
||||
| Row 2 Cell 1 | Row 2 Cell 2 | Row 2 Cell 3 | Row 2 Cell 4 |
|
||||
| Row 3 Cell 1 | Row 3 Cell 2 | Row 3 Cell 3 | Row 3 Cell 4 |
|
||||
| Row 4 Cell 1 | Row 4 Cell 2 | Row 4 Cell 3 | Row 4 Cell 4 |
|
||||
| Row 5 Cell 1 | Row 5 Cell 2 | Row 5 Cell 3 | Row 5 Cell 4 |
|
21
test/extensions/table/with-equals.html
Normal file
21
test/extensions/table/with-equals.html
Normal file
|
@ -0,0 +1,21 @@
|
|||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th id="first_header" style="text-align:left;"> First Header </th>
|
||||
<th id="second_header" style="text-align:left;"> Second Header </th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="text-align:left;"> Row 1 Cell 1 </td>
|
||||
<td style="text-align:left;"> Row 1 Cell 2 </td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td style="text-align:left;"> Row 2 Cell 1 </td>
|
||||
<td style="text-align:left;"> Row 2 Cell 2 </td>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
4
test/extensions/table/with-equals.md
Normal file
4
test/extensions/table/with-equals.md
Normal file
|
@ -0,0 +1,4 @@
|
|||
| First Header | Second Header |
|
||||
| ============= | ============= |
|
||||
| Row 1 Cell 1 | Row 1 Cell 2 |
|
||||
| Row 2 Cell 1 | Row 2 Cell 2 |
|
Loading…
Reference in New Issue
Block a user