mirror of
https://github.com/showdownjs/showdown.git
synced 2024-03-22 13:30:55 +08:00
3a924e3c7e
Github Flavored Markdown supports a specific table syntax. Table support was already available as an extension. With this commit, the feature was moved to core, adding this feature to showdown through an option called "tables". Related to #164
49 lines
1.5 KiB
HTML
49 lines
1.5 KiB
HTML
<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;"><p>Row 1 Cell 1 </p></td>
|
|
<td style="text-align:left;"><p>Row 1 Cell 2 </p></td>
|
|
<td style="text-align:left;"><p>Row 1 Cell 3 </p></td>
|
|
<td style="text-align:left;"><p>Row 1 Cell 4 </p></td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td style="text-align:left;"><p>Row 2 Cell 1 </p></td>
|
|
<td style="text-align:left;"><p>Row 2 Cell 2 </p></td>
|
|
<td style="text-align:left;"><p>Row 2 Cell 3 </p></td>
|
|
<td style="text-align:left;"><p>Row 2 Cell 4 </p></td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td style="text-align:left;"><p>Row 3 Cell 1 </p></td>
|
|
<td style="text-align:left;"><p>Row 3 Cell 2 </p></td>
|
|
<td style="text-align:left;"><p>Row 3 Cell 3 </p></td>
|
|
<td style="text-align:left;"><p>Row 3 Cell 4 </p></td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td style="text-align:left;"><p>Row 4 Cell 1 </p></td>
|
|
<td style="text-align:left;"><p>Row 4 Cell 2 </p></td>
|
|
<td style="text-align:left;"><p>Row 4 Cell 3 </p></td>
|
|
<td style="text-align:left;"><p>Row 4 Cell 4 </p></td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td style="text-align:left;"><p>Row 5 Cell 1 </p></td>
|
|
<td style="text-align:left;"><p>Row 5 Cell 2 </p></td>
|
|
<td style="text-align:left;"><p>Row 5 Cell 3 </p></td>
|
|
<td style="text-align:left;"><p>Row 5 Cell 4 </p></td>
|
|
</tr>
|
|
|
|
</tbody>
|
|
</table>
|