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
1
  • 2
    @m0sa - or better status-already-completed. – Himanshu Jansari Feb 27 '14 at 9:39
5

It works as described in the markdown help:

enter image description here

1
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

0

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