this post was submitted on 22 May 2026
3 points (100.0% liked)

Summit

1335 readers
3 users here now

Community to discuss Summit, an open-source Android app for browsing Lemmy and PieFed.

Get the app on the Play Store.

F-Droid

APK / Obtainum

Source code

Support the app

Support me on Patreon

Website: https://summit.idunnololz.com/

founded 3 years ago
MODERATORS
3
Emojis need proper scaping (piefed.blahaj.zone)
submitted 2 weeks ago* (last edited 2 weeks ago) by fushuan@piefed.blahaj.zone to c/summit@lemmy.world
 

Only example (this was injected with the emoji feature that pops up when writing in summit. I know that doubling the backslash fixes it by escaping the backslash itself): ¯_(ツ)_/¯

I can search the code and make a PR with the change, I feel bad asking to fix such a small thing. I can also open an issue later today if it's preferred but I can't right now sorry.

you are viewing a single comment's thread
view the rest of the comments
[–] threelonmusketeers@sh.itjust.works 1 points 2 weeks ago* (last edited 2 weeks ago) (1 children)

doubling the backslash fixes it by escaping the backslash itself

I think one needs to triple the backslash in this case. One for the forearm, one to escape the forearm, and another to escape the upper arms, whose underscores would otherwise be interpreted as itallics markdown.

Edit: I realize that my use of "upper arms" may have been ambiguous. I am referring to the anatomical "upper arm" segments, not the typographical "upper arm" segments, which I interpret as anatomical "wrists" or "hands".

[–] fushuan@piefed.blahaj.zone 1 points 2 weeks ago* (last edited 2 weeks ago) (1 children)

Nah, you only need a single escape:

¯_(ツ)_/¯ - not escaed

¯\(ツ)/¯ - escaped

\¯\(ツ)/\¯ - your suggestion.

You are right that the middle one italizes the emoji, but it doesn't seem like you can escape that.

[–] threelonmusketeers@sh.itjust.works 2 points 2 weeks ago* (last edited 2 weeks ago) (1 children)

You are right that the middle one italizes the emoji, but it doesn’t seem like you can escape that

Sure you can: ¯\\\_(ツ)_/¯

Renders as: ¯\_(ツ)_/¯

[–] fushuan@piefed.blahaj.zone 1 points 2 weeks ago

Oh you meant escaping the first underline so the italize doesn't trigger of course. Ok I'm stupid you are right.