2 Answers
2

It's actually just allowing you to choose between putting your code in the list and putting it outside of the list. To put it in the list, you must double indent (2 tabs or 8 spaces to start the block). For example:

This is

a sample list

and here's a codeblock in that list

// << 8 spaces
// leet code goes here

Just for comparison, here is the method you must use to do code outside of a list:

here is

another list

that doesn't have code

some blah to reset from list

// << 4 spaces
// even leeter code goes here

The real bug, as I see it, is that doing 2 line breaks after a list and then starting a code block should do a list reset, you shouldn't need that line of text.

Nice! So really, the issue is merely that the markdown documentation for lists needs to be improved?
–
Chip BennettFeb 24 '12 at 15:10

1

Yea, I'd say so...the only real change that needs to be made in code is allowing a non-list codeblock to come immediately after a list...I'd make that dependent on the number of line breaks, requiring at least 2, maybe 3.
–
mor7iferFeb 24 '12 at 16:28