BigW Consortium Gitlab

pre_process_pipeline.rb 354 Bytes
Newer Older
1 2 3 4
module Banzai
  module Pipeline
    class PreProcessPipeline < BasePipeline
      def self.filters
5
        FilterArray[
6 7
          Filter::YamlFrontMatterFilter,
          Filter::BlockquoteFenceFilter,
8 9 10 11 12 13 14 15 16 17 18
        ]
      end

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