18 lines
354 B
Ruby
18 lines
354 B
Ruby
module Banzai
|
|
module Pipeline
|
|
class PreProcessPipeline < BasePipeline
|
|
def self.filters
|
|
FilterArray[
|
|
Filter::YamlFrontMatterFilter,
|
|
Filter::BlockquoteFenceFilter,
|
|
]
|
|
end
|
|
|
|
def self.transform_context(context)
|
|
context.merge(
|
|
pre_process: true
|
|
)
|
|
end
|
|
end
|
|
end
|
|
end
|