2

I found some unusual event while posting a question on stackoverflow.com.
May be that is a bug or something, that I want your attention on.

Here is the screen shot of it. enter image description here

1

2 Answers 2

12

This is not a bug with the preview, it's a bug with your formatting.

A code block must be separated with blank lines before and after it. Your code block is properly indented, but there is no blank line between it and your body text in the previous paragraph.

The code block doesn't appear as text because it contains angle brackets, which look like invalid HTML and are therefore stripped out by the Markdown parser.

2
  • But still if code block is behave like a text then the code must appears in the preview (as a text) right ? Commented Jan 6, 2017 at 8:09
  • 1
    Fair question. Updated answer with the response.
    – Cody Gray Mod
    Commented Jan 6, 2017 at 8:11
0

Looking at that image, I suppose the problem is that the code block is not shown.
The system thinks of the code block as part of the text, and renders it as HTML. It thinks of the indentation as part of the text, too.

You indented it properly, but you should also add a newline before the code. Then the system will recognize it as a code block.

As Cody Gray points out in their answer, the system does not consider it valid HTML, so it is stripped out entirely - including any text between your XAML tags.

0

You must log in to answer this question.

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