Achim Gratz writes: [...] > So I'd like to have first-class cross headings, maybe like this: > > |----------+-----------+-----------------| > | Header | some more | and more | > |----------+-----------+-----------------| > | item | stuff | things | > | etc. | pp. | ad nauseam | > |----------+-----------+-----------------| > |> Header | to keep | things together | > |----------+-----------+-----------------| > | | ... | | > |----------+-----------+-----------------| > > So, the first heading would be determined by the first horizontal > separator inside the table (for backwards compatibility) and any > following heading would need get some special syntax (like the "|>" > above, but anything that doesn't collide with existing syntax will > just be fine I think). If there's a heading marker before the first > horizontal separation, it should probably take precedence over the > backwards-compatible markup. That would also enable to have table > headings without a separator, something that's not possible today. I've spent some time on this and have developed a patch that gets halfway there. You can have consecutive headers, headers inside the table and even headers at the end of the table: --8<---------------cut here---------------start------------->8--- |-------------+ | unrelated 1 | |~~~~~~~~~~~~~| | Test1 | |-------------+ | unrelated 2 | | Test2 | | unrelated 3 | |~~~~~~~~~~~~~| | Test3 | |-------------+ | unrelated 4 | | Test4 | | unrelated 5 | | Test5 | |~~~~~~~~~~~~~| | unrelated 6 | | Test6 | |-------------+ --8<---------------cut here---------------end--------------->8--- The first header is still determined like it always was. Headers inside table need to get a special "hline", the choice of "~" for this was dictated by most of the other characters already being used for various markup inside or outside tables. When I say "halfway there", I mean that the export is working and the lines are recognized as hlines everywhere I could find (there may still be some regexpressions floating around that don't). However, aligning tables will replace the wigglies with plain dashes since I have not yet found a way to inject the correct character for the currently hardcoded "-". The HTML export for the above table looks like this: --8<---------------cut here---------------start------------->8---
unrelated 1>=
Test1=
unrelated 2<=
Test2==
unrelated 3-=
Test3:=
unrelated 4>=
Test4=
unrelated 5<=
Test5==
unrelated 6-=
Test6:=
--8<---------------cut here---------------end--------------->8--- And ASCII: --8<---------------cut here---------------start------------->8--- unrelated 1 ------------- Test1 ------------- unrelated 2 Test2 unrelated 3 ------------- Test3 ------------- unrelated 4 Test4 unrelated 5 Test5 ------------- unrelated 6 Test6 --8<---------------cut here---------------end--------------->8--- If somebody has an idea how to make the table alignment work, please lend me a hand. Experimental patch is attached, comments are welcome.