Skip to content

Adding support for MySQL style tables to table extension #74

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

Closed
wants to merge 1 commit into from

Conversation

mdirolf
Copy link
Contributor

@mdirolf mdirolf commented Jan 23, 2012

Adding support for tables that look like this:

+------------+--------------+------+
| Field      | Type         | Null |
+------------+--------------+------+
| username   | varchar(255) | NO   |
| password   | varchar(255) | NO   |
+------------+--------------+------+

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.

@waylan
Copy link
Member

waylan commented Jan 23, 2012

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:

Markdown is not a replacement for HTML, or even close to it. Its syntax is very small, corresponding only to a very small subset of HTML tags. The idea is not to create a syntax that makes it easier to insert HTML tags. In my opinion, HTML tags are already easy to insert. The idea for Markdown is to make it easy to read, write, and edit prose. ... For any markup that is not covered by Markdown’s syntax, you simply use HTML itself.

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.

@waylan waylan closed this Jan 23, 2012
@mdirolf
Copy link
Contributor Author

mdirolf commented Jan 23, 2012

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants