2018-10-06 23:10:08 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2016-02-22 00:21:28 +00:00
|
|
|
module Banzai
|
|
|
|
module Pipeline
|
|
|
|
class PreProcessPipeline < BasePipeline
|
|
|
|
def self.filters
|
2016-02-22 00:22:02 +00:00
|
|
|
FilterArray[
|
2020-10-27 21:08:45 +00:00
|
|
|
Filter::NormalizeSourceFilter,
|
2021-01-19 09:10:32 +00:00
|
|
|
Filter::TruncateSourceFilter,
|
2018-12-07 22:05:40 +00:00
|
|
|
Filter::FrontMatterFilter,
|
2016-04-27 21:38:33 +00:00
|
|
|
Filter::BlockquoteFenceFilter,
|
2016-02-22 00:21:28 +00:00
|
|
|
]
|
|
|
|
end
|
|
|
|
|
|
|
|
def self.transform_context(context)
|
|
|
|
context.merge(
|
|
|
|
pre_process: true
|
|
|
|
)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|