2 Answers 2

3

I was using a numbered list. I removed the list to fix the code.

More info and other fixes: Why is a code block not properly formatted when placed immediately after a list item?

1
  • +1 for looking at the example, which I failed to do....
    – jprete
    Commented Oct 29, 2009 at 20:38
2

You need to indent everything in the code block by four spaces.

You're getting the code blocks that you are because the start and end lines are not indented by four spaces. So add four spaces to the start of every line and it should work.

2

You must log in to answer this question.

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