This:
heading 1 | heading 2 | heading 3
--- | --- | ---
abc | bcd | cde
def | efg | fgh
becomes this:
heading 1 | heading 2 | heading 3 |
---|---|---|
abc | bcd | cde |
def | efg | fgh |
You can also use plain old HTML tables. This:
<table>
<tr>
<th>heading 1</th>
<th>heading 2</th>
<th>heading 3</th>
</tr>
<tr>
<td>abc</td>
<td>bcd</td>
<td>cde</td>
</tr>
<tr>
<td>def</td>
<td>efg</td>
<td>fgh</td>
</tr>
</table>
becomes this:
heading 1 | heading 2 | heading 3 |
---|---|---|
abc | bcd | cde |
def | efg | fgh |
Using HTML is handy because you can do more advanced things like nested tables, or adding lists within cells.
How do you do table inside a table in markdown?