Not a big issue as this won't happen often, if ever again. (But it just scared me a lot when I messed up the Recent feature changes to Stack Exchange with this revision.)
The following does not render as expected:
<!-- Some comment, no blank line following it -->
Text
- List item
- List item
<!-- More comment, followed by blank line -->
More text
This shows fine in the preview, but after saving renders as:
Text - List item - List item
More text
However: adding a blank line below the first comment, or removing the blank line below the second comment, fixes this. (Also completely removing the second comment fixes this.)
The resulting HTML currently is:
<div class="post-text">
Text
- List item
- List item
<p>More text</p>
</div>
rather than:
<div class="post-text"><p>
Text</p>
<ul>
<li>List item</li>
<li>List item</li>
</ul>
<p>
More text</p>
</div>
(This might have the same cause as another edge case, which has been fixed though: Newline before closing </pre> might break formatting in other parts of same post.)
Update, this might be related, so for now I'm adding it here:
When manually specifying a Prettify language, one needs a bank line between the <!-- language: xx -->
line and the code block. However, the preview doesn't care if it's missing. Like the following looks fine in the preview:
<!-- language: javascript -->
if(preview != result){
alert("Big difference"
+ " in final result!");
}
...but is rendered as:
if(preview != result){ alert("Big difference" + " in final result!"); }
status-declined
is very fine with me!