[kramdown-users] Table syntax and implementation

Thomas Leitner t_leitner at gmx.at
Fri Jan 15 09:43:18 EST 2010


On Thu, 14 Jan 2010 14:42:45 +0100, Thomas Leitner wrote:
> On Thu, 14 Jan 2010 18:43:00 +0700, Shawn Van Ittersum wrote:
> > > * kramdown tables do not need to have a table header.
> > 
> > Just checking something:  If the table has a separator line after
> > any table rows, then that separator is a header separator,
> > correct?  And then all rows above it would be header rows, right?
> > 
> > | List   | ...
> > | of     | ...
> > | Things | ...
> > |---
> > | More   | ...
> > | Things | ...
> > | Here   | ...
> > 
> > The above example will not be a table of two tbody elements, but a
> > table with three header rows (in a thead) and three regular body
> > rows (in a tbody), right?
> 
> Yes, that's correct.

To be more specific: Your example table will have three header and
three body rows. However, since separator lines are *not* a subset of
header lines and neither the other way round, it is possible to create a
table with two table bodies but no table header, for example:

| Body 1 | row 1 |
| Body 1 | row 2 |
|-------|||------|
| Body 2 | row 1 |
| Body 2 | row 2 |

-- Thomas


More information about the kramdown-users mailing list