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>
<!-- prettier-ignore --><Markdown> Markdown block that contains unicode characters 🤗</Markdown>
<!-- prettier-ignore --><arkdown> Second Markdown block.</
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 —
) instead of their unicode characters. (Nothing we can do about emojis though).