-
-
Notifications
You must be signed in to change notification settings - Fork 163
Markdown Tables
andychu edited this page Dec 25, 2024
·
3 revisions
Demo of markdown tables, for comparison with ul-table
.
Command | Description |
---|---|
git status | List all new or modified files |
git diff | Show file differences that haven't been staged |
Left-aligned | Center-aligned | Right-aligned |
---|---|---|
git status | git status | git status |
git diff | git diff | git diff |
Github produces this HTML, with align=
on every cell. This is a symptom of a problem: HTML doesn't have table alignment by column
<table role="table">
<thead>
<tr>
<th align="left">Left-aligned</th>
<th align="center">Center-aligned</th>
<th align="right">Right-aligned</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left">git status</td>
<td align="center">git status</td>
<td align="right">git status</td>
</tr>
<tr>
<td align="left">git diff</td>
<td align="center">git diff</td>
<td align="right">git diff</td>
</tr>
</tbody>
</table>