Sha256: 1bcb471bad4afcd7d8cf8a7ff758ac5db1cd99e10813f4da2cf2c97130b95e00

Contents?: true

Size: 354 Bytes

Versions: 12

Compression:

Stored size: 354 Bytes

Contents

module HTML
  class Pipeline
    # Very similar to EmojiFilter, but it removes the inline
    # width/height/align attributes so that reveal-ck supplied CSS
    # takes effect.
    class RevealCKEmojiFilter < EmojiFilter
      def emoji_image_tag(name)
        "<img class='emoji' alt=':#{name}:' src='#{emoji_url(name)}' />"
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
reveal-ck-4.0.0 lib/html/pipeline/reveal_ck_emoji_filter.rb
reveal-ck-3.9.2 lib/html/pipeline/reveal_ck_emoji_filter.rb
reveal-ck-3.9.1 lib/html/pipeline/reveal_ck_emoji_filter.rb
reveal-ck-3.9.0 lib/html/pipeline/reveal_ck_emoji_filter.rb
reveal-ck-3.8.1 lib/html/pipeline/reveal_ck_emoji_filter.rb
reveal-ck-3.8.0 lib/html/pipeline/reveal_ck_emoji_filter.rb
reveal-ck-3.7.0 lib/html/pipeline/reveal_ck_emoji_filter.rb
reveal-ck-3.6.0 lib/html/pipeline/reveal_ck_emoji_filter.rb
reveal-ck-3.5.1 lib/html/pipeline/reveal_ck_emoji_filter.rb
reveal-ck-3.5.0 lib/html/pipeline/reveal_ck_emoji_filter.rb
reveal-ck-3.4.0 lib/html/pipeline/reveal_ck_emoji_filter.rb
reveal-ck-3.3.1 lib/html/pipeline/reveal_ck_emoji_filter.rb