summaryrefslogtreecommitdiff
path: root/lib/banzai/pipeline/pre_process_pipeline.rb
blob: 6cf219661d3f33f8400d44e48a63b8105aee8ecb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
module Banzai
  module Pipeline
    class PreProcessPipeline < BasePipeline
      def self.filters
        FilterArray[
          Filter::YamlFrontMatterFilter,
          Filter::BlockquoteFenceFilter,
        ]
      end

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