8eaeda0816
This filter will detect YAML Front Matter and convert it to an HTML table for prettier formatting.
17 lines
312 B
Ruby
17 lines
312 B
Ruby
module Banzai
|
|
module Pipeline
|
|
class PreProcessPipeline < BasePipeline
|
|
def self.filters
|
|
FilterArray[
|
|
Filter::YamlFrontMatterFilter
|
|
]
|
|
end
|
|
|
|
def self.transform_context(context)
|
|
context.merge(
|
|
pre_process: true
|
|
)
|
|
end
|
|
end
|
|
end
|
|
end
|