debian-mirror-gitlab/lib/banzai/pipeline/post_process_pipeline.rb
2019-09-30 21:07:59 +05:30

30 lines
659 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::ReferenceRedactorFilter,
Filter::InlineMetricsRedactorFilter,
Filter::RelativeLinkFilter,
Filter::IssuableStateFilter,
Filter::SuggestionFilter
]
end
def self.transform_context(context)
context.merge(
post_process: true
)
end
end
end
end