debian-mirror-gitlab/lib/banzai/pipeline/pre_process_pipeline.rb
2021-01-29 00:20:46 +05:30

21 lines
422 B
Ruby

# frozen_string_literal: true
module Banzai
module Pipeline
class PreProcessPipeline < BasePipeline
def self.filters
FilterArray[
Filter::NormalizeSourceFilter,
Filter::FrontMatterFilter,
Filter::BlockquoteFenceFilter,
]
end
def self.transform_context(context)
context.merge(
pre_process: true
)
end
end
end
end