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.
Macmade's solution doesn't work for me anymore on my Jekyll instance on Github Pages anymore but I found this solution on an issue for the kramdown github repo. For OP's example it would look like this: