Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 155 Stack Exchange communities.

What is meta?
Here's how it works:
  1. Any Stack Exchange user can ask a question
  2. The community provides support, votes on ideas, and reports bugs
  3. Your voice helps shape the way Stack Exchange operates

I noticed that, while typing out a question, the <!-- language --> specifier caused different rendering in the question preview than when I published the question.

Specifically, omitting the new line between the <!-- ... --> and the code caused the code to be rendered as though it wasn't indented (ie, the HTML was interpreted).

After I'd asked the question, the following rendered as "Bold":

<!-- language:html -->
    <b>Bold</b>

while the following rendered as <b>Bold<b>:

<!-- language:html -->

    <b>Bold</b>

However, both of them rendered as <b>Bold</b> in the preview below the new-question form, and it wasn't until I'd asked the question that I realized my HTML wasn't going to be escaped.

share|improve this question
    
Hmm... Pretty sure that's a dupe, but I can't find the original – balpha May 18 '11 at 15:50
    
@balpha Neither could I. I couldn't think of what else it might be tagged with, so I invented the language-specifier tag. Please retag if there is something more appropriate. – meagar May 18 '11 at 17:27
up vote 3 down vote accepted

This is now fixed, per:

Unbalanced blank lines after inline HTML comments might break formatting

The preview should also correctly reflect the final output.

share|improve this answer

You must log in to answer this question.

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