You need 8 spaces for code formatting in lists. 1. This is a test With code will display as: 1. This is a test With code