Sha256: c7cac13107dae0be6a74382ca156fbf5c45cf4a92f2c9902494461cd8e898eb8

Contents?: true

Size: 491 Bytes

Versions: 2

Compression:

Stored size: 491 Bytes

Contents

require 'html/pipeline'
require 'html/pipeline/gitlab/version'

module HTML
  class Pipeline
    class Gitlab
      # GitLab related filters for html-pipeline. Implements new filters used
      # by GitLab.

      # Custom filter implementations
      autoload :GitlabEmojiFilter, 'html/pipeline/gitlab/gitlab_emoji_filter'

      def initialize(filters)
        @filters = filters.flatten.freeze
      end

      def pipeline
        HTML::Pipeline.new @filters
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
html-pipeline-gitlab-0.1.5 lib/html/pipeline/gitlab.rb
html-pipeline-gitlab-0.1.4 lib/html/pipeline/gitlab.rb