Files
gitlabhq/lib/banzai/pipeline/pre_process_pipeline.rb
2024-02-08 18:11:25 +00:00

22 lines
421 B
Ruby

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