debian-mirror-gitlab/lib/banzai/pipeline/pre_process_pipeline.rb
2018-12-13 13:39:08 +05:30

21 lines
385 B
Ruby

# frozen_string_literal: true
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