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

21 lines
381 B
Ruby
Raw Normal View History

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