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