This answer has perfectly formatted code in the beginning. However, when I hit the edit
link it turns out, that code is no longer formatted, because it starts without first four spaces.
What am I missing? How can a piece of Markdown be formatted and not formatted in the same time?
This seems to be a bug, as it affects multiple posts, especially very old ones which have not been edited since about 2010. This should be fixed.
<pre><code>
. There's plenty of them that don't use spaces on the first line.