Problem
When formatting a table for a post, there is a mismatch between the draft preview and the published version. In the draft, if there is no newline ahead of the table, the table still looks correct. However, in the published version, it is instead displayed as unformatted inline code. The solution is to add a newline ahead of the table. I would still consider this to be a bug, as the preview does not match the final result. I have added pictures (before and after) to this post to demonstrate the bug in action.
Sample | Table |
---|---|
Foo | Bar |
How to reproduce
No newline above table
Preview
No newline ahead of table. Preview display indicates this is OK.
Published
Please notice how the table is now inline code.
Newline added above table
Preview
Newline added above table. There is no change in the preview, that is, it displays as expected a correctly formatted table.
Published
As can be seen, the edit (adding a newline) allowed the table to be displayed correctly when published.