What is meta? ×
Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 127 Stack Exchange communities.

There is a minor bug in formatting preview feature. In the following case, preview shows all text striked out (even text following the </s>), but final formatting doesn't allow cross-paragraph HTML tags.

Example: I guess could try this:

bla bla bla</s>

The above example is not completely fictional. In some cases it is useful to strike out obviously invalid part of an answer, but not delete it since it provides vital context for the comments or following parts of the answer.

[There seem to be several bug reports for preview/final formatting inconsistencies, but I didn't find anything about this case]

EDIT:

There is <s> tag after "Example: " text, but final markdown formatting doesn't show it.

share|improve this question
add comment

2 Answers

Your closing </s> is in a code block – so it's not actually a closing tag. Striking through several paragraphs works just fine:

<s>first

second

third</s>

turns into

first

second

third

as expected. But since your opening <s> tag is never closed, you actually have invalid HTML (which does indeed get handled differently by the client-side and server-side renderer).


Edit: After a recent change, the client- and server-side handling of these cases are closer to each other, so after the next build, the preview and the final version of your example will look identical.

Of course you should still not rely on deliberately invalid markup doing the correct thing; but in most cases, you'll now be made aware of problems in the preview already, not just in the final rendering.

share|improve this answer
add comment

There should be no expectation of intentionally valid markup producing consistent results.

share|improve this answer
add comment

You must log in to answer this question.

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