Markdown: continue numbered list

markdown

Solution

Use four spaces to indent content between bullet points

1. item 1
2. item 2

    

Code block

3. item 3

`

Produces:

- item 1

item 2

` Code block `

- item 3

Problem

In the following markdown code I want `item 3` to start with list number 3. But because of the code block in between markdown starts this list item as a new list. Is there any way to prevent that behaviour? Desired output: ```` 1. item 1 2. item 2 ``` Code block ``` 3. item 3 ```` Produced output: - item 1 - item 2 ` Code block ` - item 3

Original source