Incorrect numbering when rendering markdown

It appears to me that the markdown renderer is having some trouble understanding that it shouldn’t begin a new numbered line every time after a code block. This causes a numbered list to always restart at 1.