summaryrefslogtreecommitdiff
path: root/lib/banzai/pipeline/pre_process_pipeline.rb
blob: 4c2b4ca16652f181fbdb3ea7419ebf2a9705c050 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# frozen_string_literal: true

module Banzai
  module Pipeline
    class PreProcessPipeline < BasePipeline
      def self.filters
        FilterArray[
          Filter::FrontMatterFilter,
          Filter::BlockquoteFenceFilter,
        ]
      end

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