Emoji rendering 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:

emoji bug

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.

1 Like

Hello :wave:

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
The image displays a text message with the phrase "Hello:fire:" and a red fire emoji.  (Captioned by AI)

Enabled
Screenshot_20240803_062458

3 Likes

Thanks, that fixed it.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.