-
-
Notifications
You must be signed in to change notification settings - Fork 510
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Emoji being showed as raw text #2182
Comments
I suspect our emojify JavaScript library needs updating for the latest emojis: https://github.com/emojione/emojify.js |
@andrew emojify.js hasn't been updated in over 2 years... looks like we'll need a different emoji library here. |
@xadamy d'oh, looks like you're right 😔 |
I've found a handful of libraries that could potentially replace emojify.js, but I'm not sure how to compare them to figure out which one is best to use. Hopefully someone else knows and can take this information and make a useful decision with it. Emojis: https://github.com/iamcal/emoji-data JS Emojis: https://github.com/rodrigopolo/jqueryemoji Ruby Emojis: https://github.com/mroth/emoji_data.rb So, if someone who is not me is willing to make a call and say "use this," I'm more than happy to take a stab at replacing emojify.js with whatever is chosen. |
Thanks for looking into this @emclaughlin1215, jqueryemoji looks like a good fit for this project if you fancy tackling swapping out emojify.js? |
@andrew So, it turns out that the real problem isn't so much that the emoji converter is out of date (although that is a problem) as that the shortcodes that github uses aren't necessarily the CLDR short name. For instance, github uses "rofl" as the shortcode instead of "rolling_on_the_floor_laughing," which is what the CLDR short name is and what it appears most other places I've checked use. Github's API has a method that returns urls for the emojis keyed by the shortcode they use: https://api.github.com/emojis I... am not sure what to do about this. I guess the general thing that would need to happen is:
|
@emclaughlin1215 another alternative might be https://github.com/github/gemoji, I've got that added to one of my other open source rails apps: octobox/octobox#571 |
This twitter emoji repository https://github.com/twitter/twemoji.git may be worth a look. |
There is an emoji being showed as raw text (with a
]
next to it, for some reason). I haven't tested if:rofl:
emoji is causing the problem or just because there is a blank line after it.Above is as rendered by 24pullrequests while the one under it is the actual render (by GitHub).
(click to zoom)
Original raw text:
The text was updated successfully, but these errors were encountered: