Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Table Block-mode Syntax Proposal (Followup Hangout #23) #235

Open
Skeeve opened this issue Nov 26, 2013 · 3 comments
Open

Table Block-mode Syntax Proposal (Followup Hangout #23) #235

Skeeve opened this issue Nov 26, 2013 · 3 comments

Comments

@Skeeve
Copy link
Contributor

Skeeve commented Nov 26, 2013

Let's brainstorm the Syntax for block-mode tables here (meaning: each cell starts on a new line).

I'm expanding the proposal we had on the hangout, but change it a bit from what I proposed before.

Remember: At the moment we have in a cell:

|left align | center | right align|

We could keep that like so:

||
|left align |
| center |
| right align|
|~
|another cell default left aligned
| another cell where we don't know whether to right align or center
||

giving that, we can also apply our current "h" for header lines or we can even add styles like so:

||.myTableClass
|left align |.mySpecialCellClass
| center |
| right align|
|~.myRowClass
|another cell default left aligned
| another cell where we don't know whether to right align or center
||
@Jermolene
Copy link
Member

By the way, here's the details of the WikiMedia syntax for block-mode tables that originally inspired the proposal:

http://www.mediawiki.org/wiki/Help:Tables

@pmario
Copy link
Member

pmario commented Nov 27, 2013

||.myClass   .... start

|!| .. header
|!<| .. h left align column
|!>| .. h right align
|!><| .. h center

|~| .. new row

|><| this text is centered and spans all the columns
||> ... span to the next column
||> 
||> 
|----| .. new row ... alternative 
|>| some right aligned multi line text
with a new line at the end

|.cellClass1 <| ... the cell gets a class and is left aligned ... the class wins.
|.cellClass2 >|
||

|----|

|c| .. caption
|f| .. footer
||  .. end

@pmario
Copy link
Member

pmario commented May 15, 2014

link to hangout video: https://www.youtube.com/watch?v=vKJwcY-gx2g

@Jermolene Jermolene modified the milestone: 5.1.0 Oct 22, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants