2018-12-13 13:39:08 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2016-06-02 11:05:42 +05:30
|
|
|
module Banzai
|
|
|
|
module Pipeline
|
|
|
|
class PreProcessPipeline < BasePipeline
|
|
|
|
def self.filters
|
|
|
|
FilterArray[
|
2019-02-15 15:39:39 +05:30
|
|
|
Filter::FrontMatterFilter,
|
2016-08-24 12:49:21 +05:30
|
|
|
Filter::BlockquoteFenceFilter,
|
2016-06-02 11:05:42 +05:30
|
|
|
]
|
|
|
|
end
|
|
|
|
|
|
|
|
def self.transform_context(context)
|
|
|
|
context.merge(
|
|
|
|
pre_process: true
|
|
|
|
)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|