Why does formatting never work?

I’ll be typing something and press enter, but it will just not go in the style I want it too. Any way to bypass this?

Thanks! (If it does work in a post it definitely does not work in comments)