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
and welcome to Discourse Meta ![]()
I guess that forum has that unicode on watched words perhaps? I can do it here and on my instance.
maybe I should read the post after I see it in the previewer lol ![]()
![]()
you can also use the HTML equivalent that markdown recognizes. - ♡. ![]()
You could use escape it with backticks: ♡
I do recognise it’s a bit annoying when it autoconverts ![]()
♢
♤
♧
♠ ♡ ♢ ♣ ♤ ♥ ♦ ♧
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 | 🎔 |
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?
Hello ![]()
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:
far-heart word 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
emoji for everyone.
Same like the first option: Use watched word replace to change the :heart: to ♡.
I would prefer the first option.
Thank you. Can I color tag the icons?
If not, where would I put in a feature request to have formatting of ♡ into emoji prevented with a backslash? This is that important to me lol.
I moved it to Feature
Are you sure [wrap] is allowed? I can’t make that work and AI claims it is not allowed.
Wrap is allowed by theme components, it is allow-listed in core, will see where ask got the wrong idea from
I kind of solved it out. I continued conversation and then it explained that can be expanded using plugins (or components). So at first it gave me minimum needed answer.
Anyway, [wrap] doesn’t seems to work, for me.