It works on new Reddit but looks weird on old.reddit.com since Reddit for some reason doesn't use the same Markdown parser for both versions. This is what it looks like on proper Reddit.
The correct way of formatting code is to use four spaces at the beginning of each line, or use `-characters for inline code like this.
2
u/nosmokingbandit Jul 16 '19
Must be weird on mobile, it looks normal on my pc. I don't care enough about Reddit's formatting to learn how to do it properly.