debian-mirror-gitlab/lib/banzai/pipeline/pre_process_pipeline.rb
2019-02-15 15:39:39 +05:30

20 lines
381 B
Ruby

# 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