debian-mirror-gitlab/lib/banzai/pipeline/post_process_pipeline.rb

30 lines
603 B
Ruby
Raw Normal View History

2018-12-13 13:39:08 +05:30
# frozen_string_literal: true
2015-12-23 02:04:40 +05:30
module Banzai
module Pipeline
class PostProcessPipeline < BasePipeline
def self.filters
2018-11-18 11:00:15 +05:30
@filters ||= FilterArray[
*internal_link_filters,
Filter::AbsoluteLinkFilter
]
end
def self.internal_link_filters
[
2018-03-17 18:26:18 +05:30
Filter::RedactorFilter,
2015-12-23 02:04:40 +05:30
Filter::RelativeLinkFilter,
2019-02-13 22:33:31 +05:30
Filter::IssuableStateFilter,
Filter::SuggestionFilter
2015-12-23 02:04:40 +05:30
]
end
def self.transform_context(context)
context.merge(
post_process: true
)
end
end
end
end