Adding support for MySQL style tables to table extension#74
Adding support for MySQL style tables to table extension#74mdirolf wants to merge 1 commit intoPython-Markdown:masterfrom
Conversation
|
I can appreciate your desire to have this functionality, however, this is one of many table proposals I've seen over the years. Rather than choosing one over another I have always denied every request. We have provided the API which allows anyone to maintain their own table syntax which works for them. So why do we have the existing table extension? Only because we are providing an exact (or as close as possible) copy of PHP's implementation. That way we can say 'we support extra also.' Personally, I'm of the opinion that all tables should be in raw html. A position which is supported by the Inline HTML section of the Syntax Documentation, which states in part:
As I see it, tables are not "prose," and therefore outside of Markdown's scope. I realize other's disagree (as they are entitled), but, as stated above, we offer an API making any syntax possible. That and we have to draw the line somewhere to avoid feature creep. The Syntax rules seem to support the current position of that line IMO. |
|
Sort of expected an answer like that, but thought that since we needed the code anyway I'd let you decide if you wanted to merge it in. Cheers! |
Adding support for tables that look like this:
The differences from the currently support format are the addition of the top and bottom lines, and the use of the
+on borders. This would be an extension of the format supported by PHP Markdown extra, but I think it's worthwhile and the implementation is simple.