gitlab-org--gitlab-foss/lib/banzai/pipeline/post_process_pipeline.rb
2018-12-13 19:17:19 +00:00

29 lines
603 B
Ruby

# frozen_string_literal: true
module Banzai
module Pipeline
class PostProcessPipeline < BasePipeline
def self.filters
@filters ||= FilterArray[
*internal_link_filters,
Filter::AbsoluteLinkFilter
]
end
def self.internal_link_filters
[
Filter::RedactorFilter,
Filter::RelativeLinkFilter,
Filter::IssuableStateFilter,
Filter::SuggestionFilter
]
end
def self.transform_context(context)
context.merge(
post_process: true
)
end
end
end
end