Something broke Markdown tables with column alignment in the Markdown preview shown below the editor
This is Ham Vocke's demo table with aligned columns:
| left | center | right |
|:---- |:------:| -----:|
| One | Two | Three |
This is it, rendered:
| left | center | right |
|---|---|---|
| One | Two | Three |
In the Markdown preview shown below the editor, the words appear one after the other, as if the Markdown contains:
left center right One Two Three
This is the same table without alignment, which appears correctly:
| left | center | right |
| ---- | ------ | ----- |
| One | Two | Three |
| left | center | right |
|---|---|---|
| One | Two | Three |
If you follow unaligned columns with aligned ones...
| left | center | right |
| ---- |:------:| -----:|
| One | Two | Three |
...it renders like you had written this Markdown instead:
center right Two Three
| left |
| ---- |
| One |
-
1Here? Stack Overflow? Somewhere else? Everywhere? Questions only or both questions and answers? New ask page?Aaron Bertrand– Aaron Bertrand Staff2025年11月04日 15:01:07 +00:00Commented Nov 4 at 15:01
-
4@AaronBertrand I don't seem to have access to the new ask page anywhere. But I can reproduce it for both questions and answers on MSE, SO, .SE sites (tried Worldbuilding and Sci-Fi), SU, SF, and StackApps. I think that covers most types of sites - both with special name/domains and generic ones. All in the old editor. EDIT: also tried the new editor here (on MSE): i.sstatic.net/Jf9PJ7D2.pngVLAZ– VLAZ2025年11月04日 15:06:56 +00:00Commented Nov 4 at 15:06
-
6My fault. I'm on it.balpha– balpha StaffMod2025年11月04日 15:38:50 +00:00Commented Nov 4 at 15:38
-
@AaronBertrand I found it when editing my hardware recs answer on dynamic-keycap keyboards, where I removed the alignment because I couldn't see what I was doing.Michael come lately– Michael come lately2025年11月04日 15:40:50 +00:00Commented Nov 4 at 15:40
-
Apparently you are using other working markdown to show what the bug output looks like, but please say so explicitly, because otherwise you force every reader to look at the markdown of this post to see whether you are doing that.philipxy– philipxy2025年11月04日 20:43:24 +00:00Commented Nov 4 at 20:43
-
3@philipxy well, you can't really show markdown in a post, when the bug is only in previews. It could have been a screenshot but it's less accessible. Since the preview only showed the word stripping any table formatting, I don't see the issue of showing only the words without table formatting.VLAZ– VLAZ2025年11月04日 20:48:20 +00:00Commented Nov 4 at 20:48
-
@VLAZ We don't know whether the poster relied on the bug to produce the output, which would be bad since it spoils the question when the bug is fixed, and it might be fixed, so as readers & curators we have to look at the markdown. I didn't say the problem was not using the bug, I said "you are using other working markdown to show what the bug output looks like, but please say so explicitly" & I said why. PS I'm all for "using other working markdown to show what the bug output looks like" when possible, just because it is more accessible than an image. And for ALSO EXPLICITLY using the bug.philipxy– philipxy2025年11月04日 20:54:18 +00:00Commented Nov 4 at 20:54
-
2It's a bug only present in the preview. We do know that it's not used in the post because that's not a preview. Unless you want to say that OP is bold-faced lying to us and the bug is actually present in any post, not just in the preview.VLAZ– VLAZ2025年11月04日 20:59:52 +00:00Commented Nov 4 at 20:59
-
@philipxy There you go.Michael come lately– Michael come lately2025年11月04日 21:07:49 +00:00Commented Nov 4 at 21:07
-
@VLAZ My only interest in actually manifesting the bug is simply basic bug reporting. Your comments don't seem very connected to what I actually have said. I'm done.philipxy– philipxy2025年11月05日 05:17:25 +00:00Commented Nov 5 at 5:17
-
3@philipxy My 2ct as the primary recipient of the bug report: This is a perfectly good bug report that clearly described the problem and was easy for me to reproduce (and confirm the fix!).balpha– balpha StaffMod2025年11月05日 05:43:23 +00:00Commented Nov 5 at 5:43
1 Answer 1
Fixed now, thank you for being observant!
The other day we fixed an issue in the table validation code where things might be considered valid that shouldn't be. Unfortunately that ended up considering things not valid that should be.
I hope we've found the correct middle ground now 😁
You must log in to answer this question.
Explore related questions
See similar questions with these tags.