Ghost blog - How to make a table in Markdown

Small tables in markdown can be a good way to present data on your blog. For example I needed to show the result of a SQL query which I presented in the following way:

Id ParsedName ParsedAge ParsedHeight
06D2FD93... Peter 30 186.50

The code for the above table is the following:

| Id          | ParsedName | ParsedAge | ParsedHeight |
|-------------|------------|-----------|--------------|
| 06D2FD93... | Peter      | 30        | 186.50       |

You can write these tables on your own, but I would advise that you use an online generator for it if you have more than a couple columns. For the above I have used www.tablesgenerator.com which I found randomly by searching for it. Ghost has the full documentation for these tables here. My opinion is that these need to be kept rather simple, as they start to be hard to maintain if they have too many columns.

I hope you found this helpful, please leave a comment below if you did!