Class: Banzai::Pipeline::PostProcessPipeline

Inherits:
BasePipeline show all
Defined in:
lib/banzai/pipeline/post_process_pipeline.rb

Class Method Summary collapse

Methods inherited from BasePipeline

html_pipeline

Class Method Details

.filtersObject


6
7
8
9
10
11
12
# File 'lib/banzai/pipeline/post_process_pipeline.rb', line 6

def self.filters
  @filters ||= FilterArray[
    *internal_link_filters,
    Filter::AbsoluteLinkFilter,
    Filter::BroadcastMessagePlaceholdersFilter
  ]
end

14
15
16
17
18
19
20
21
22
23
24
25
# File 'lib/banzai/pipeline/post_process_pipeline.rb', line 14

def self.internal_link_filters
  [
    Filter::ReferenceRedactorFilter,
    Filter::InlineMetricsRedactorFilter,
    # UploadLinkFilter must come before RepositoryLinkFilter to
    # prevent unnecessary Gitaly calls from being made.
    Filter::UploadLinkFilter,
    Filter::RepositoryLinkFilter,
    Filter::IssuableStateFilter,
    Filter::SuggestionFilter
  ]
end

.transform_context(context) ⇒ Object


27
28
29
30
31
# File 'lib/banzai/pipeline/post_process_pipeline.rb', line 27

def self.transform_context(context)
  context.merge(
    post_process: true
  )
end