simov/markdown-viewer

Emoji rendering inconsistencies

Opened this issue ยท 0 comments

There is a difference in how Markdown Viewer and GitHub handle emojis. Since Markdown Viewer supports GitHub Flavored Markdown (GFM), the emojis should be handled the same way.

Markdown Viewer replaces emoji shortcodes with third-party images. The list of shortcodes differs from the one GitHub uses, which causes compatibility issues. Also there is a difference in how emojis are displayed when entered as Unicode characters versus when using shortcodes.

GitHub converts shortcodes into Unicode characters. How emojis are displayed then depends on the client. This approach ensures that emojis are handled consistently.

For example:

๐Ÿชธ :coral:

๐Ÿชผ :jellyfish:

๐ŸŒ :snail:

๐Ÿฆ‹ :butterfly:

๐Ÿ› :bug:

๐Ÿœ :ant:

๐Ÿ :bee: :honeybee:

๐Ÿชฒ :beetle:

๐Ÿž :lady_beetle:

๐Ÿฆ— :cricket:

๐Ÿชณ :cockroach:

๐Ÿ•ท๏ธ :spider:

Emojis rendered by Markdown Viewer:
picture1

Emojis rendered by GitHub:
picture2

The full list can be found here:
github-emojis.md

Version: Markdown Viewer 5.3
Browser: Mozilla Firefox 142.0.1