Seems like there might be a problem with the editor not recognising code insertion when you're pasting code in the middle of a list.
Below is a post displaying the problem
I tried multiple ways to get that in there including:
1. Single Enter + Tab
2. Double Enter + Tab
3. The "Code" button on the editor window
4. Copy and pasting code from another article and then replacing it with mine
If it's me doing something wrong, let me know :)