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-07-13 06:32:49 -04:00
|
|
|
Filter::IssuableStateFilter
|
2015-12-15 09:51:16 -05:00
|
|
|
]
|
|
|
|
end
|
|
|
|
|
|
|
|
def self.transform_context(context)
|
|
|
|
context.merge(
|
|
|
|
post_process: true
|
|
|
|
)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|