2
for (var i = 0; i < 42; i++) {
}

When code leads the post, Markdown differs between the preview and the submitted HTML. The submitted HTML does not format the code while the preview does.

Bug does not repro on meta. I ran into the error when first posting this: https://stackoverflow.com/posts/2274573/edit

However, the revision log seems to be missing, so I can't prove my point.

3
  • 1
    FWIW, it's better if you don't lead off with a code block - a short introductory sentence will show up on the Questions page and in tooltips on the front page.
    – Shog9
    Commented Feb 16, 2010 at 19:01
  • There will be no revision log for revisions made within the first 5 minutes of the initial post, or within 2 minutes of each other for any other edit.
    – Ether
    Commented Feb 16, 2010 at 21:42
  • Add a blank line in front of your code and it will be repro here as well. Commented Jun 2, 2010 at 16:33

2 Answers 2

1

can't reproduce this. Underlying source code on meta and SO is identical.

1
0

You can add a few empty lines before the code block as a work around.

1
  • Funny that we all know the workaround, but this bug continues to get closed as No Repro. Commented May 29, 2010 at 22:35

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .