gitlab-org--gitlab-foss/lib/banzai/pipeline/pre_process_pipeline.rb

19 lines
354 B
Ruby
Raw Normal View History

2016-02-22 00:21:28 +00:00
module Banzai
module Pipeline
class PreProcessPipeline < BasePipeline
def self.filters
FilterArray[
Filter::YamlFrontMatterFilter,
Filter::BlockquoteFenceFilter,
2016-02-22 00:21:28 +00:00
]
end
def self.transform_context(context)
context.merge(
pre_process: true
)
end
end
end
end