I can look into it further, but I believe Markdown syntax specifies 4 spaces indicates code. This strips the first 4 spaces, then it's up to the developer to choose the indentation style of the code after that.