# Table in Markdown

https://michelf.ca/projects/php-markdown/extra/#table


## nptable


```````````````````````````````` example
First Header  | Second Header
------------- | -------------
Content Cell  | Content Cell
Content Cell  | Content Cell
.
<table>
<thead>
<tr>
  <th>First Header</th>
  <th>Second Header</th>
</tr>
</thead>
<tbody>
<tr>
  <td>Content Cell</td>
  <td>Content Cell</td>
</tr>
<tr>
  <td>Content Cell</td>
  <td>Content Cell</td>
</tr>
</tbody>
</table>
````````````````````````````````


## table

```````````````````````````````` example
| First Header  | Second Header |
| ------------- | ------------- |
| Content Cell  |               |
| Content Cell  | Content Cell  |
.
<table>
<thead>
<tr>
  <th>First Header</th>
  <th>Second Header</th>
</tr>
</thead>
<tbody>
<tr>
  <td>Content Cell</td>
  <td></td>
</tr>
<tr>
  <td>Content Cell</td>
  <td>Content Cell</td>
</tr>
</tbody>
</table>
````````````````````````````````


```````````````````````````````` example
| Command | Description |
| --- | --- |
| git status | List all new or modified files |
| git diff | Show file differences that haven't been staged |
.
<table>
<thead>
<tr>
  <th>Command</th>
  <th>Description</th>
</tr>
</thead>
<tbody>
<tr>
  <td>git status</td>
  <td>List all new or modified files</td>
</tr>
<tr>
  <td>git diff</td>
  <td>Show file differences that haven't been staged</td>
</tr>
</tbody>
</table>
````````````````````````````````

## align table

```````````````````````````````` example
 Left |  Center    | Right
:---- | :--------: | ------:
 a    |   b        |  c
.
<table>
<thead>
<tr>
  <th style="text-align:left">Left</th>
  <th style="text-align:center">Center</th>
  <th style="text-align:right">Right</th>
</tr>
</thead>
<tbody>
<tr>
  <td style="text-align:left">a</td>
  <td style="text-align:center">b</td>
  <td style="text-align:right">c</td>
</tr>
</tbody>
</table>
````````````````````````````````

```````````````````````````````` example
| Left | Center | Right |
| :--- | :----: | ----: |
| a    | b      | c     |
.
<table>
<thead>
<tr>
  <th style="text-align:left">Left</th>
  <th style="text-align:center">Center</th>
  <th style="text-align:right">Right</th>
</tr>
</thead>
<tbody>
<tr>
  <td style="text-align:left">a</td>
  <td style="text-align:center">b</td>
  <td style="text-align:right">c</td>
</tr>
</tbody>
</table>
````````````````````````````````

## Misc Table

```````````````````````````````` example
| A | |
| - | |
| a | b |
.
<table>
<thead>
<tr>
  <th>A</th>
  <th></th>
</tr>
</thead>
<tbody>
<tr>
  <td>a</td>
  <td>b</td>
</tr>
</tbody>
</table>
````````````````````````````````

```````````````````````````````` example
A |
- |
a | b
.
<table>
<thead>
<tr>
  <th>A</th>
  <th></th>
</tr>
</thead>
<tbody>
<tr>
  <td>a</td>
  <td>b</td>
</tr>
</tbody>
</table>
````````````````````````````````


```````````````````````````````` example
| Foo | Bar |
|-----|-----|
| boo | baz |
| faz |     |
.
<table>
<thead>
<tr>
  <th>Foo</th>
  <th>Bar</th>
</tr>
</thead>
<tbody>
<tr>
  <td>boo</td>
  <td>baz</td>
</tr>
<tr>
  <td>faz</td>
  <td></td>
</tr>
</tbody>
</table>
````````````````````````````````

## Mismatch length

```````````````````````````````` example
| First Header  |
| ------------- | ------------- |
| Content Cell  |               |
| Content Cell  | Content Cell  |
.
<p>| First Header  |
| ------------- | ------------- |
| Content Cell  |               |
| Content Cell  | Content Cell  |</p>
````````````````````````````````

```````````````````````````````` example
| First Header  | Second Header |
| ------------- | ------------- |
| Content Cell  |
| Content Cell  | Content Cell  |
.
<p>| First Header  | Second Header |
| ------------- | ------------- |
| Content Cell  |
| Content Cell  | Content Cell  |</p>
````````````````````````````````

```````````````````````````````` example
A |
- | - |
a | b | c
.
<p>A |</p>
<ul>
<li>| - |
a | b | c</li>
</ul>
````````````````````````````````

```````````````````````````````` example
A | B | C
- | - | -
a | b
.
<p>A | B | C</p>
<ul>
<li>| - | -
a | b</li>
</ul>
````````````````````````````````
