summaryrefslogtreecommitdiff
path: root/lib/banzai/pipeline/email_pipeline.rb
blob: 7c959fe17e14038f3d1dc332836fe4668957f57f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# 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,
<<<<<<< HEAD
          emailable_links: true,
          no_sourcepos: true
=======
          emailable_links: true
>>>>>>> dev/master
        )
      end
    end
  end
end