I was going through the first-posts queue and came across this answer. It's correct, but the formatting was a little off, so I thought I'd fix it for them.
Turns out though, that the formatting is/was correct (codeMagic "fixed" it) - but the markdown parser is considering the code part of the answer to be a part of the list. Note the extra indentation.
See my example below. If you click edit on this question, you'll see that there's multiple lines between the list and the <string>
tags. This should terminate the list section and start the code formatting section. It doesn't matter whether the tags are present or not - though if they are present, they don't show up.
- List item 1.
List item 2.
This should be code formatted.
However, if you put any (?) non-whitespace text at least 1 line after the list, it "fixes" it:
- List item 1.
- List item 2.
.
<string>This should be code formatted.</string>
Is there a workaround for this?
I have tried this in 2 other Markdown editors (Atom editor, and dillinger.io) and both exhibit the behaviour of requiring 2 line breaks between the list and the code.
<!-- -->
between the list and the code, with empty lines before and after.