Welcome to mirror list, hosted at ThFree Co, Russian Federation.

email_pipeline.rb « pipeline « banzai « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 13e6a9904074ae91849a515dd195841fdd4b6271 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# frozen_string_literal: true

module Banzai
  module Pipeline
    class EmailPipeline < FullPipeline
      def self.filters
        super.tap do |filter_array|
          filter_array.delete(Banzai::Filter::ImageLazyLoadFilter)
        end
      end

      def self.transform_context(context)
        super(context).merge(
          only_path: false,
          emailable_links: true,
          no_sourcepos: true
        )
      end
    end
  end
end