![]() I’m going to quote myself so that the reader doesn’t have to click the link if she does not wish to (feel free to object to what I put forward!): As long as this site stays up, obviously the discussion should be kept here. I continued off what mofosyne suggested over at github. Pipe Tables is best for ‘one off’ presentation like emails, where flexibility comes first before ease of maintenance.ĬSV tables is best for when the table is likely to be constantly updated, and the user is willing to sacrifice flexibility in alignment for maximum ease of modification. But the pipe tables from markdown extra should be included as well, since it occurs so often in emails and text documents. My opinion is that we should aim to support csv tables first, simply due to the ease of implementation. Doesn’t have the same beauty as piped headers.Aside from parsing the compressed pipe header, the rest of the data is in CSV format which is much faster to parse.loses flexibility of |:-:| in setting all cells below to same alignmentĬSV Tables (With compressed pipe headers).Is traditional, and most people already remember how to do it.Seems we can sum this up: Standard pipe (markdown extra) Since I believe markdown is about getting formatting out of the way of your writing. This way, we can avoid too much formatting, and heck if you are lazy, you could just remove whitespaces and it shall still be very maintainable like so: |:- Year -|:- Make -|:- Model -:|ġ999, Chevy, "Venture ""Extended Edition"" " This is some other text, since the end of a table is implied by a new paragraph.Įssentially, just treat pipes as ‘optional’ for the actual cell data (which is the field that gets modified most often anyway (compared to the header). If you still need alignment control for each cell, then you can just use the previous (but simplified) pipe tables shown above using |:, :| |:- Year -|:- Make -|:- Model -:|ġ999, Chevy, "Venture ""Extended Edition""" The ease of use comes from sticking to csv which most people use already, and combining it with a simplified table header. I’m a big fan of CSV data, due to how easy it is to type. If alignment of cell data is of no concern to the user, then we should use CSV data as the inspiration. The second issue, is that people find it hard to have to deal with formatting the pipes. įor header alignment: |:- left aligned -|, |- right aligned -:| |:- Centre aligned -:|. To indicate a field is a header you use |-, -|. This is ( ): | Item | Value |įirst example (Compress the pipe headers): So here is some ways I think it can be simplified from “Markdown Extra” syntax for this effort. And stuff like tables and anchors are common enough to be a core standard.Ī common complaint I understand about tables in markdown variants that attempts to implement this, is that it is hard to maintain. Making certain features optional means it won’t be fully widespread.
0 Comments
Leave a Reply. |