You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ gh repo view
caelwithcats/test
Don't worry about this repo :+1: :smile: View this repository on GitHub: https://github.com/caelwithcats/test
The emojis show as the original markdown but if you add a unicode emoji the emoji's will show:
To render these we'd have to maintain a local mapping of :+1: version to the unicode version. I don't think I'm opposed to incorporating that; there might be an off the shelf library we could leverage.
This feels like a fairly straightforward fix; I'd be happy to take a crack at it.
As far as the generation of the mapping file goes, go generate feels like the natural choice, but that would likely require changes to the Makefile with a step prior to go build to ensure the local emoji DB is rebuilt each time the CLI is compiled. Would you prefer I go down that path, or if the emoji DB is largely static, I can just write the generation code and we'd have to rebuild the mapping file in an ad hoc manner in the future?
Activity
vilmibm commentedon Sep 18, 2020
Thanks for the report!
To render these we'd have to maintain a local mapping of
:+1:version to the unicode version. I don't think I'm opposed to incorporating that; there might be an off the shelf library we could leverage.masterneko commentedon Sep 18, 2020
I think GitHub uses EmojiLib. Why not use the that? - emojis.json is the file that contains the emojis and their metadata
mislav commentedon Sep 18, 2020
GitHub uses gemoji: https://github.com/github/gemoji/blob/master/db/emoji.json
We could generate a mapping file in Go using the JSON data as input. 👍
data-man commentedon Sep 18, 2020
@mislav
Or use:
https://github.com/enescakir/emoji
https://github.com/kyokomi/emoji
jpm63 commentedon Sep 18, 2020
This feels like a fairly straightforward fix; I'd be happy to take a crack at it.
As far as the generation of the mapping file goes,
go generatefeels like the natural choice, but that would likely require changes to the Makefile with a step prior togo buildto ensure the local emoji DB is rebuilt each time the CLI is compiled. Would you prefer I go down that path, or if the emoji DB is largely static, I can just write the generation code and we'd have to rebuild the mapping file in an ad hoc manner in the future?