-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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 not working #768
Comments
Is this OK? or should we use CDN? |
+1 Same issue. |
According to caniemoji.com, unicode emoji are supported all the way back to Windows 7, macOS 10.7, Android 4.4, and iOS 5. Switching to unicode emoji would remove emoji @sio-funmatsu -- Swapping the URL may be a workable short-term fix, but I wouldn't recommend it as a permanent fix since this same thing can happen again if GitHub decides to host their emoji images in a new location. If we go this route, I'd recommend using GitHub's emoji <=> image mapping available via https://api.github.com/emojis. If we wanted to stick with images long-term, it would be better to reference open source or (free) licensed emoji images available on a CDN such as EmojiOne. Docsify would qualify for a free license, allowing it to import the images directly into the docsify repo, which could then be referenced on jsDelivr for free. This would remove the dependency on GitHub's emoji images and add support for additional emoji as well. |
The issue lives here: https://github.com/docsifyjs/docsify/blob/master/lib/plugins/emoji.js#L896 The new URL is: https://github.com/images/icons/emoji/ (removes |
When is this expected to be fixed? |
For me it makes sense to go for long term with native unicode characters. For instance if you search for grinning you will find two results by keywords (and even more where this is a substring of the keyword) but on GitHub it's unique. So I suggest to do a quick fix and sticking for now to GitHubs emoijs. I just remembered: GitHub API has a rate limit: https://developer.github.com/v3/#rate-limiting
That sounds like a deal breaker to me. And I've just tested for the emoji API, it is affected as well: {
"message": "API rate limit exceeded for xxx.yyy.zzz.133. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)",
"documentation_url": "https://developer.github.com/v3/#rate-limiting"
} @docsifyjs/core what do you think? |
language flags are broken due to this, even docsify docs have broken images, hope this gets fixed soon |
This has been fixed in the docsify v4.9.1 courtesy of @louislivi. Moving unicode emoji discussion to a separate issue (#779). |
See docsify-themeable's emoji demo
It appears the CDN used for emoji images is having issues or is no longer used for this purpose by GitHub.
For example, this markdown:
:thumbsup:
Is rendered as follows by docsify:
Here's how tne same emoji is rendered as part of a GitHub issue:
Note the rendering method (rendering an actual emoji character) and the use of a different URL as a fallback. The official unicode emoji list may be helpful if/when docsify's emoji output is updated.
The text was updated successfully, but these errors were encountered: