2018-10-06 19:10:08 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2016-02-21 19:21:28 -05:00
|
|
|
module Banzai
|
|
|
|
module Pipeline
|
|
|
|
class PreProcessPipeline < BasePipeline
|
|
|
|
def self.filters
|
2016-02-21 19:22:02 -05:00
|
|
|
FilterArray[
|
2016-04-27 17:38:33 -04:00
|
|
|
Filter::YamlFrontMatterFilter,
|
|
|
|
Filter::BlockquoteFenceFilter,
|
2016-02-21 19:21:28 -05:00
|
|
|
]
|
|
|
|
end
|
|
|
|
|
|
|
|
def self.transform_context(context)
|
|
|
|
context.merge(
|
|
|
|
pre_process: true
|
|
|
|
)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|