2

Possible Duplicates:
How do I include a code block right after a list without it turning into a blockquote?
How to nest code within a list using markdown

I edited this question, but even after retyping the entire entry and formatting it myself, I still can't get the codeblocks to show up.

Is there a specific reason why?

2

2 Answers 2

3

Code within a list needs to be indented with an extra four spaces.

  • Here is the list

    System.InvalidOperationException: Workflow with id "[GUID]" [...]
    

Which is just:

 - Here is the list

        System.InvalidOperationException: Workflow with id "[GUID]" [...]

This works for both ordered and unordered lists.

0
2

The solution is to double-indent (e.g., 8 spaces) the code block if it's within a list. Here is an example of a previously asked relevant meta question.

1
  • Great. If you add the link to the duplicate I'll vote to close with ya. :-) Commented Dec 9, 2009 at 14:53

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