Emoji rendering problem

AI-generated summary

The discussion is about an Emoji rendering problem. j127 initially reported a bug where emojis pasted directly after text are converted to text, but later discovered it was due to a site setting called enable inline emoji translation being disabled. Don explained that this setting, when enabled, allows inline emojis to be translated correctly. j127 confirmed that enabling the setting fixed the issue. Additionally, supermathie shared a related diagnosis of the problem.

It seems like there’s a bug when emojis are pasted right after text.

Edit: it turned out to be a setting — see below.


To reproduce:

  • Go here and copy the emoji onto your clipboard.
  • Make a comment below and write some text (like “testing”) and paste two emojis directly after the text without any spaces.

It should look like this in the editor and preview window:

Once the post is submitted, the first emoji will be converted to text, like :fire:.

Here’s the output:
text​:fire::fire:

Edit: I’ve reproduced it in three Discourse forums, including this one.

Hello :waving_hand:

There is a site setting which prevents this.

By default this setting is disabled.
enable inline emoji translation

Description:
Enables translation for inline emojis (without any space or punctuation before)


On my forum I’ve enabled this setting and it works in posts too.

Disabled

Enabled

Thanks, that fixed it.

(see Inline emoji turned into text - #6 by supermathie for a diagnosis of the problem)