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>
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>
Have you tried the Senseful Solutions format text as a table tool?
I think you still need headers but it makes creating tables a lot easier for SO.
This works well for me in GitHub. The first row is no longer bolded as it is not a header:
Check an sample HTML table without header here.
Omitting the header above the divider produces a headerless table in at least Perl Text::MultiMarkdown and in FletcherPenney MultiMarkdown
See PHP Markdown feature request
Empty headers in PHP Parsedown produce tables with empty headers that are usually invisible (depending on your CSS) and so look like headerless tables.
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
PHP Markdown Extra "second line contains a mandatory separator line between the headers and the content"
RDiscount Uses PHP Markdown Extra syntax.
Parsers that do support tables without headers.
simple_tables
andmultiline_tables
extensions)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.Many of the suggestions unfortunately do not work for all markdown viewers/editors, for instance, in my case - the popular Markdown Viewer Chrome extension but do work with iA Writer.
What does seem to work across both of these popular programs (and might work for your particular application) is to use
html comment blocks ('<!-- -->')
:Like some of the earlier suggestions stated, this does add an empty header row in your markdown viewer/editor and is inevitable. In iA Writer, its aesthetically small enough that it doesn't get in my way too much.