Issues with Unicode Characters

Prettier messes up the <!-- prettier-ignore --> block if you have unicode characters like emojis and emdashes before the block.

<!-- prettier-ignore -->
<Markdown>
Markdown block that contains unicode characters 🤗
</Markdown>
<!-- prettier-ignore -->
<Markdown>
Second Markdown block.
</Markdown>

This issue unfortunately stems from Astro or Prettier’s formatter and there’s nothing we can do about it.

You can, however, avoid this issue by using HTML entities (like &mdash;) instead of their unicode characters. (Nothing we can do about emojis though).