diff options
author | Eric Eastwood <contact@ericeastwood.com> | 2017-01-30 13:41:18 -0600 |
---|---|---|
committer | Eric Eastwood <contact@ericeastwood.com> | 2017-01-30 13:41:18 -0600 |
commit | 3977a64a08554aaa77700bfa3ad9af1dee011355 (patch) | |
tree | dbabb656b401419b6ea1af331bc7b584afe2f8d5 /lib/banzai/filter/emoji_filter.rb | |
parent | 4468104f3550456481b45d1b09202ed6732a1810 (diff) | |
download | gitlab-ce-feature/native-emojis.tar.gz |
WIP: native emojisfeature/native-emojisfeature/26371-native-emojis
Diffstat (limited to 'lib/banzai/filter/emoji_filter.rb')
-rw-r--r-- | lib/banzai/filter/emoji_filter.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/banzai/filter/emoji_filter.rb b/lib/banzai/filter/emoji_filter.rb index a8c1ca0c60a..9e01d5f2b82 100644 --- a/lib/banzai/filter/emoji_filter.rb +++ b/lib/banzai/filter/emoji_filter.rb @@ -17,8 +17,9 @@ module Banzai next unless content.include?(':') || node.text.match(emoji_unicode_pattern) - html = emoji_name_image_filter(content) - html = emoji_unicode_image_filter(html) + puts "html #{html}" + #html = emoji_name_image_filter(content) + #html = emoji_unicode_image_filter(html) next if html == content @@ -51,6 +52,7 @@ module Banzai end def emoji_image_tag(emoji_name, emoji_url) + puts "emoji_image_tag #{emoji_name}" "<img class='emoji' title=':#{emoji_name}:' alt=':#{emoji_name}:' src='#{emoji_url}' height='20' width='20' align='absmiddle' />" end |