gitlab-org--gitlab-foss/lib/banzai/pipeline/email_pipeline.rb

22 lines
451 B
Ruby
Raw Normal View History

# frozen_string_literal: true
module Banzai
module Pipeline
2015-10-21 06:18:23 -04:00
class EmailPipeline < FullPipeline
def self.filters
super.tap do |filter_array|
filter_array.delete(Banzai::Filter::ImageLazyLoadFilter)
end
end
2015-10-21 06:18:23 -04:00
def self.transform_context(context)
super(context).merge(
only_path: false,
emailable_links: true,
no_sourcepos: true
2015-10-21 06:18:23 -04:00
)
end
end
end
end