Closed anasram closed 1 year ago
Tables are not part of this project. I think you’re talking about GFM?
Mmm, well, then let's consider this proposal as a begging to support tables in this project! :)
Otherwise, maybe I should submit this to Pandoc directly, regardless of the markdown flavor?
This repo is the spec, so issues are typically more about concrete proposals. More discussion like place is https://talk.commonmark.org. Which I know has a ton of discussions about tables.
If you use pandoc, and only really care about that, that’s probably a better place to ask.
If you only care about GH, which is the most standard-like thing that defines these, you’re probably better off asking them. But: they don’t really have people on the project. So it’s highly unlikely anything will ever happen with this.
The Current Situation
Typically there're two kinds of pipe tables in Markdown:
Readable Pipe Tables
Note: The following example tables are drawn from Pandoc manual.
Editable Pipe Tables
The Problem
As a Solution
Making editable tables (ugly pipe tables) readable (nice), is a mission that should be entrusted to text editors that support (understand) Markdown.
This means two things for text editors:
Accordingly, the previous table should look like this automatically:
But we still have a problem here: Text editor should add additional hyphens
-
under the header cells for this purpose too, i.e. making the table readable.As a solution, I propose using
**...**
in a cell to refer to ath
element, instead of astrong
element. In this case the line of hyphens won't be required. Like this:As you can see, the colon
:
can be added to the heading cells itself for alignment.Another benefit of this way to represent header cells is to set any cell as header cell. Like this: