fletcher / MultiMarkdown-4

This project is now deprecated. Please use MultiMarkdown-6 instead!
https://github.com/fletcher/MultiMarkdown-5
Other
307 stars 59 forks source link

Possible bug in table formatting #49

Closed mn4367 closed 10 years ago

mn4367 commented 10 years ago

I have the follwing table code:

|    Col A    |    Col B    |    Col C     |
| :---------- | :---------: | -----------: |
|   Cell 1A   |   Cell 1B   |    Cell 1C   |
|   Joined Cell 2A         ||    Cell 2B   |
|   Cell 3A   |       Joined Cell 3B      ||
|   Cell 4A   |   Cell 4B   |    Cell 4C   |

Converting this code with MMD 4.5 this results in a table where Cell 2B is centered. While the alignment of Joined Cell 2A and Joined Cell 3B are clearly debatable I think that everybody would excpect that Cell 2B should be right aligned since this cell doesn't really differ from cell Cell 1C.

Michael

table

fletcher commented 10 years ago

This should be fixed in 314a1d80e76574c5edfaeabdaa2c8598d51b3280.

Thanks!

mn4367 commented 10 years ago

Many thanks for fixing it!

Michael

Loco16 commented 10 years ago

Outputs for LaTeX and HTML are slightly different. It seems that the fix does not apply to LaTeX Output.

fletcher commented 10 years ago

Can you give an example? The example above works properly in LaTeX -- cell 2B is right aligned.

Loco16 commented 10 years ago

Cell 2B is right aligned, for HTML and LaTeX -- as expected. But cell 2A is left aligned in HTML output and centered in LaTeX output.

fletcher commented 10 years ago

OK. That's not what the above issue was about, but I committed a fix.

Loco16 commented 10 years ago

I'm sorry about the confusion and thanks for the fix.

fletcher commented 10 years ago

No worries!

Sent from my iPhone

On May 14, 2014, at 1:10 PM, Loco16 notifications@github.com wrote:

I'm sorry about the confusion and thanks for the fix.

— Reply to this email directly or view it on GitHub.