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
Copying emojis from Github and pasting them into Unicode-aware applications that do not support (proprietary) short codes with colons is currently broken.
# Default attributes for img tagdefdefault_img_attrs(name){"class"=>"emoji".freeze,"title"=>":#{name}:","alt"=>":#{name}:","src"=>"#{emoji_url(name)}","height"=>"20".freeze,"width"=>"20".freeze,"align"=>"absmiddle".freeze,}end
The alternative textual representation of an image of a Unicode emoji is of course the emoji itself! Therefore, line 90 should read something like this: "alt" => "#{code}", or "alt" => "#{emoji_code(name)}",, probably using unicode_aliases.first from gemoji.
Custom "emojis" should probably use ``#{name}` without colons.
My ruby-fu is sadly not up for the task, so I'm not providing a PR.
The text was updated successfully, but these errors were encountered:
Copying emojis from Github and pasting them into Unicode-aware applications that do not support (proprietary) short codes with colons is currently broken.
In emoji_filter.rb:
The alternative textual representation of an image of a Unicode emoji is of course the emoji itself! Therefore, line 90 should read something like this:
"alt" => "#{code}",
or"alt" => "#{emoji_code(name)}",
, probably usingunicode_aliases.first
from gemoji.Custom "emojis" should probably use ``#{name}` without colons.
My ruby-fu is sadly not up for the task, so I'm not providing a PR.
The text was updated successfully, but these errors were encountered: