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
43 lines
1.0 KiB
HTML
43 lines
1.0 KiB
HTML
<h1 id="tabletest">Table Test</h1>
|
|
|
|
<h2 id="section1">section 1</h2>
|
|
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<th id="header1" style="text-align:left;">header1 </th>
|
|
<th id="header2" style="text-align:left;">header2 </th>
|
|
<th id="header3" style="text-align:left;">header3</th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
<tr>
|
|
<td style="text-align:left;"><p>Value1 </p></td>
|
|
<td style="text-align:left;"><p>Value2 </p></td>
|
|
<td style="text-align:left;"><p>Value3 </p></td>
|
|
</tr>
|
|
|
|
</tbody>
|
|
</table>
|
|
|
|
<h2 id="section2">section 2</h2>
|
|
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<th id="headera" style="text-align:left;">headerA </th>
|
|
<th id="headerb" style="text-align:left;">headerB </th>
|
|
<th id="headerc" style="text-align:left;">headerC</th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
<tr>
|
|
<td style="text-align:left;"><p>ValueA </p></td>
|
|
<td style="text-align:left;"><p>ValueB </p></td>
|
|
<td style="text-align:left;"><p>ValueC </p></td>
|
|
</tr>
|
|
|
|
</tbody>
|
|
</table> |