colspan differences with GitHub Flavored Markdown & PHP Markdown Extra

rufwork's Avatar

rufwork

08 Jul, 2016 02:26 AM

Quick question... Why does MMD chose to treat multiple pipes in a row as a colspan rather than as blank cells, contra PHP Markdown Extra & GitHub flavored Markdown?

I completely sympathize with Penney's earlier comment, "*perhaps a slight exaggeration, but there are almost as many syntaxes for tables as the original Markdown has for all of its features... ;)*", which is right on the money, so this isn't a question about which is "better". ;^) Rather, I saw that MMD table syntax was based loosely on PHP MD Extra, so I'm guessing the compatibility break was intentional.

Fwiw, I do think I prefer MMD... If you need an empty cell, you add a space and you're done, and that behaves the same in all three of these MD flavors. Mostly just curious why the break from other table formats for colspans.

Thanks!

  1. Support Staff 1 Posted by fletcher on 08 Jul, 2016 02:35 AM

    fletcher's Avatar

    It's not a question of a difference in interpretation as much as it is that I added features to PHP Markdown Extra's more simplistic table syntax. PHP ME doesn't have a concept of multiple pipes in a row, so they are just empty cells.

    GFM came much later, so I can't speak to it.

  2. fletcher closed this discussion on 08 Jul, 2016 02:35 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

11 Dec, 2022 09:57 PM
11 Dec, 2022 07:57 PM
26 Sep, 2022 02:40 AM
21 Jul, 2022 10:22 AM
11 Jan, 2022 02:33 PM

Recent Articles