Class: Banzai::Pipeline::PreProcessPipeline

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

Class Method Summary collapse

Methods inherited from BasePipeline

html_pipeline

Class Method Details

.filtersObject


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

def self.filters
  FilterArray[
    Filter::FrontMatterFilter,
    Filter::BlockquoteFenceFilter,
  ]
end

.transform_context(context) ⇒ Object


13
14
15
16
17
# File 'lib/banzai/pipeline/pre_process_pipeline.rb', line 13

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