[kramdown-users] Table syntax and implementation

Shawn Van Ittersum svicalifornia at gmail.com
Sun Jan 17 11:38:09 EST 2010


Agreed. :)

Thanks,
Shawn

On Sun, 17 Jan 2010 16:02:54 +0100, Thomas Leitner wrote:
> On Sun, 17 Jan 2010 08:16:37 -0500, Eric Sunshine wrote:
>> Wouldn't it be simplest just to use the single straight-forward rule 
>> that any rows before the first separator are headers? In other words, 
>> this table has a header:
>> 
>>    | header1 | header2 |
>>    |-
>>    | data1 | data2 |
>> 
>> whereas, this one does not:
>> 
>>    |-
>>    | data1 | data2 |
>> 
>> (Another way to look at the above table is that it has a null header 
>> because no lines are present before the first separator line.)
> 
> I don't find this very intuitive, for example, when presented with the
> following table I would assume that it has one header row and two body
> rows:
> 
>     |------+-------|
>     | Cell | Two   |
>     |------+-------|
>     | Body | Body  |
>     | Body | Body  |
>     |------+-------|
> 
> I think it makes more sense that the first separator line that
> appears *after at least one table row* is interpreted as header
> separator line.
> 
> -- 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