Code block is not properly formatted when placed immediately after a list item
In my answer here, I wrote up a solution with step-by-step instructions. However, my numbered items are being reset to 1. This only happens in Item B and Item C. The first section of my answer doesn't suffer from this problem.
Is this a bug in markdown, or am I doing something wrong?