summaryrefslogtreecommitdiff
path: root/lib/banzai/filter/emoji_filter.rb
diff options
context:
space:
mode:
authorEric Eastwood <contact@ericeastwood.com>2017-01-30 13:41:18 -0600
committerEric Eastwood <contact@ericeastwood.com>2017-01-30 13:41:18 -0600
commit3977a64a08554aaa77700bfa3ad9af1dee011355 (patch)
treedbabb656b401419b6ea1af331bc7b584afe2f8d5 /lib/banzai/filter/emoji_filter.rb
parent4468104f3550456481b45d1b09202ed6732a1810 (diff)
downloadgitlab-ce-feature/native-emojis.tar.gz
Diffstat (limited to 'lib/banzai/filter/emoji_filter.rb')
-rw-r--r--lib/banzai/filter/emoji_filter.rb6
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