[kramdown-users] Table syntax and implementation

Shawn Van Ittersum svicalifornia at gmail.com
Fri Jan 15 16:56:35 EST 2010



Shawn
[sent from mobile phone]

On Jan 15, 2010, at 9:43 PM, Thomas Leitner <t_leitner at gmx.at> wrote:

> 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
> _______________________________________________
> kramdown-users mailing list
> kramdown-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/kramdown-users


More information about the kramdown-users mailing list