Very important (not really) markdown special-handling case: the shruggy

AI-generated summary

A discussion on handling the “shruggy” emoticon ¯\_(ツ)_/¯ in Discourse’s markdown. mattdm highlights the issue where the markdown interprets the backslash as an escape character, resulting in a missing arm. sam suggests using the “watched words” feature to replace the broken version with the correct one. However, mattdm encounters issues with implementing this solution, which david attributes to the watched words being applied after escaping. mattdm notes a potential bug in the test feature, which doesn’t reflect the actual behavior.

So there’s this little internet chat expression: ¯\_(ツ)_/¯ – the classic “shruggy”.

Tragically, Discourse’s markdown sees the first \ as an escape, and we get

¯\_(ツ)_/¯

A MISSING ARM.

Poor shruggy!

Now I know that I can mis-use `` as I did above, or throw in a couple of extra escapes

¯\\\_(ツ)_/¯ → ¯\_(ツ)_/¯

but people replying via email will not necessarily know to do this – and those getting the message via email will also not have the escapes rendered.

I’m sure there are many more important things, but … maybe there could be a special case? ¯\_(ツ)_/¯

6 Likes

¯\_(ツ)_/¯

`¯\_(ツ)_/¯`
1 Like

Special cases get you into a nightmare situation long term. That said… you can set up watched words to replace the “broken” version with your desired full shruggy.

No need for a new feature, you have it already :slight_smile:

5 Likes

Can I do that on my hosted plan?

Yeah it is a core feature in your admin panel :slight_smile:

3 Likes

Hmm, so… I added it to the Replace list…

image

and it works with the Test button, but does not seem to with actual posts. Any idea? Important shruggy feature! - #3 by mattdm - Fedora Discussion

Looks like the watched words are applied after the escaping, so you’ll need to replace the ‘broken’ version with the correct version

(temporarily) set up here on Meta: ¯\_(ツ)_/¯

4 Likes

Ah, interesting. I guess there’s a bug there, since the test doesn’t show that.

3 Likes