Ensure spaces before and after MD formattings