markdownhtml-tablemultimarkdown

Create a table without a header in Markdown


Is it possible to create a table without a header in Markdown?

The HTML would look like this:

<table>
<tr>
    <td>Key 1</td>
    <td>Value 1</td>
</tr>
<tr>
    <td>Key 2</td>
    <td>Value 2</td>
</tr>
</table>

Solution

  • Most Markdown parsers don't support tables without headers. That means the separation line for headers is mandatory.

    Parsers that do not support tables without headers

    Parsers that do support tables without headers.

    CSS solution

    If you're able to change the CSS of the HTML output you can however leverage the :empty pseudo class to hide an empty header and make it look like there is no header at all.