2018-10-06 19:10:08 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2015-12-15 09:51:16 -05:00
|
|
|
module Banzai
|
|
|
|
module Pipeline
|
|
|
|
class PostProcessPipeline < BasePipeline
|
|
|
|
def self.filters
|
2018-07-13 06:32:49 -04:00
|
|
|
@filters ||= FilterArray[
|
|
|
|
*internal_link_filters,
|
|
|
|
Filter::AbsoluteLinkFilter
|
|
|
|
]
|
|
|
|
end
|
|
|
|
|
|
|
|
def self.internal_link_filters
|
|
|
|
[
|
2017-11-06 11:52:56 -05:00
|
|
|
Filter::RedactorFilter,
|
2015-12-15 09:51:16 -05:00
|
|
|
Filter::RelativeLinkFilter,
|
2018-12-13 14:17:19 -05:00
|
|
|
Filter::IssuableStateFilter,
|
|
|
|
Filter::SuggestionFilter
|
2015-12-15 09:51:16 -05:00
|
|
|
]
|
|
|
|
end
|
|
|
|
|
|
|
|
def self.transform_context(context)
|
|
|
|
context.merge(
|
|
|
|
post_process: true
|
|
|
|
)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|