3

when trying to create a list and including a code-block in one of the points, either you can't properly format the codeblock as such, or you reset the numbered list counter.

imagine following scenario:

  1. Some explanation or reasoning
    adding a language declaration to make the codeblock render
here comes the codeblock
  1. Second point in chain of reasoning
  • 2
    @m0sa - or better status-already-completed. – hims056 Feb 27 '14 at 9:39
5

It works as described in the markdown help:

enter image description here

| improve this answer | |
6

Code within lists needs additional indentation (8-spaces):

  1. Some explanation or reasoning
    adding a language declaration to make the codeblock render

    here comes the codeblock
    
  2. Second point in chain of reasoning

Markdown:

1. Some explanation or reasoning  
adding a language declaration to make the codeblock render

        here comes the codeblock

2. Second point in chain of reasoning

See: How to nest code within a list using Markdown

| improve this answer | |

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