Back to cheat sheet

Table

Build tables with pipes (|) and hyphens (-). This is a GFM extension.

Markdown
| Name | Role |
| ---- | ---- |
| Ada | Author |
| Linus | Editor |
Preview
NameRole
AdaAuthor
LinusEditor
HTML output
<table>
<thead>
<tr><th>Name</th><th>Role</th></tr>
</thead>
<tbody>
<tr><td>Ada</td><td>Author</td></tr>
<tr><td>Linus</td><td>Editor</td></tr>
</tbody>
</table>

Tip — Add : to the divider row to set column alignment.

Open in converter