This message was deleted.
# feature-requests
s
This message was deleted.
d
that would be fun! would the fallback experience viewing it on github.com be to just render
:my-custom-emoji-name:
as plaintext?
c
It actually works in GitHub UI too, no fallback needed. You can do a bit of markup like
<picture ...>
with a URL to the custom emoji image file and GitHub UI will render it
d
TIL, thanks
and is
<picture>
just meant to be
display: inline
with text, as opposed to
<img>
?
c
Copy code
<picture data-single-emoji=":seal-clap:" title=":seal-clap:"><img class="emoji" width="20" height="auto" src="<https://single-emoji.vercel.app/api/emoji/eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIn0..UXG9W2HoeMxnQpHr.IF9TmzgIP_G4zSbfdjdkW0JypylvtqgrK5lJQTJPqam83fnEsIph0-E7Q91JyWW5lNUDbjZTdRvhfc6PNRzXgSHnaOQLqjeo7bcUb60_juUX_XKp816caLYB1ykacwqk.zXNczqnfQbXYX2zWCiA1Qw>" alt=":seal-clap:" align="absmiddle"></picture>
Here is an example of how the Single Emoji app linked above does the markup. That apps works in the GitHub UI through a chrome extension. It does display inline as you would expect an emoji to, rather than a block image.
d
oh but do you need the Chrome extension to correctly render it?
or does it render w/out
c
Nope! Anyone can view it. The chrome extension is only for posting custom emoji. It provides auto-complete so I can type
:seal-clap:
and see the custom emoji in the suggested list like any other emoji. Then, I believe, when you go to submit the comment it does a find/replace of the text
:seal-clap:
with the markup above
d
gotcha, very cool!
i know companies have gallons of emoji in their Slack instances, depending on the culture and replicating them to Graphite might be annoying too would you prefer to just hook up your slack instance to graphite and ingest the custom emoji from there, if that was possible?
(for example Stripe had like… 50,000 custom emoji? and i remember we wanted them on PRs haha)
that might save us building an entire UI identical to Slack's emoji upload UI
and get you more what you want? idk
(it ties the feature to slack though which is a minus)
c
would you prefer to just hook up your slack instance to graphite and ingest the custom emoji from there, if that was possible?
Ya I was thinking it would be an automatic ingestion when I first installed the Graphite Slack app. Could be something I toggle on only if desired, or choose which emoji to ingest if there are that many to worry about. My company isn’t that big so not a huge issue for us to sync everything.
d
got it
@Pranathi Peri saved this one to Linear
🙏 1