

Spaces behave like this because markdown was designed to be like HTML but quicker to write and easier to read without formatting;
most web services that use markdown translate it to HTML rather than parsing it directly, and in HTML whitespaces are supposed to work like you demonstrated in your comment.
The reason for this behavior in HTML is “because someone in the 90s said so”, I’m afraid.




It sure would be nice if we had a word for problematic behaviors, most often psychological, having to do with hedonistic over-indulgence at the expense of one’s health, and usually addressed with therapy…