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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

22 lines
451 B
Ruby
Raw Normal View History

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