Because a newline directly after the opening <x-markdown> \n will force the markdown parser to treat the content as block-level and leave it as-is. When content is on the same line, it is treated as inline and wrapped in a <p> tag. This is by design to control how your output is processed.