How do I prevent unicode heart from become ❤️ when posting?

Hello! I frequent a forum that switched to Discourse back in April. I used to leave the U+2661 white heart suit unicode character in my posts but since the switch when I do that it turns into the red heart emoji. I don’t want the emoji. I want my unicode lol. I’ve tried leading with a backslash to prevent the formatting but it does nothing. Is there another way around this?

Hi there :wave: and welcome to Discourse Meta :slight_smile:

I guess that forum has that unicode on watched words perhaps? I can do it here and on my instance.

:heart:

you can also use the HTML equivalent that markdown recognizes. - ♡. :heart:

1 Like

You could use escape it with backticks:

I do recognise it’s a bit annoying when it autoconverts :frowning:

:spades: :heart::clubs::heart: :diamonds:

♠ ♡ ♢ ♣ ♤ ♥ ♦ ♧

Maybe use an alternative heart that isn’t mapped to the Emoji?

Glyph Description HTML code
U+2766 FLORAL HEART ❦
U+2767 ROTATED FLORAL HEART BULLET ❧
U+2619 REVERSED ROTATED FLORAL HEART BULLET ☙
U+2765 ROTATED HEAVY BLACK HEART BULLET ❥ or ❥
🎔 U+1F394 HEART WITH TIP ON THE LEFT 🎔
3 Likes

I have no idea. I insert the heart with the character viewer in macOS and it auto-converts when I hit post. I was trying to find a way to convey what unicode character I was talking about because I knew it would probably auto-convert here and no one would be able to see it.

That’s the only method I’ve found to keep it visible but I also want to be able to add color tags to the character.

For the purposes of the post I was making, it had to be the empty outline of a heart.

Is there really no way around this? Why is backslashing just completely ignored in its case?

1 Like

Hello :wave:

There are some other you can try.

Discourse Icon Theme Component
With this theme component you can display icons in posts.

I mean the is maybe a good option.
[wrap=icon id=far-heart][/wrap]

Plus you can add a watched word for this to easy replacement in /admin/customize/watched_words/action/replace

For example:
heart-icon world replace to [wrap=icon id=far-heart][/wrap]
Make sure to check in the HTML checkbox.


The second one is probably not what you want because it globally change the :heart: emoji for everyone.

Same like the first option: Use watched word replace to change the :heart: to ♡.


I would prefer the first option.