26 lines
536 B
Ruby
26 lines
536 B
Ruby
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
|
|
]
|
|
end
|
|
|
|
def self.transform_context(context)
|
|
context.merge(
|
|
post_process: true
|
|
)
|
|
end
|
|
end
|
|
end
|
|
end
|