summaryrefslogtreecommitdiff
path: root/lib/banzai/pipeline
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2016-02-21 19:22:02 -0500
committerRobert Speicher <rspeicher@gmail.com>2016-03-04 18:05:48 -0500
commit8eaeda081615346e1d428e9f4f4402d3bb24b9f1 (patch)
treedbd6e45e2f3951c32760e6ad5d11076864d16e11 /lib/banzai/pipeline
parent74751791a8bf27c5576832f73a57a5b110b423ad (diff)
downloadgitlab-ce-8eaeda081615346e1d428e9f4f4402d3bb24b9f1.tar.gz
Add YamlFrontMatterFilter to the PreProcessPipeline
This filter will detect YAML Front Matter and convert it to an HTML table for prettier formatting.
Diffstat (limited to 'lib/banzai/pipeline')
-rw-r--r--lib/banzai/pipeline/pre_process_pipeline.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/banzai/pipeline/pre_process_pipeline.rb b/lib/banzai/pipeline/pre_process_pipeline.rb
index c174f0b862d..50dc978b452 100644
--- a/lib/banzai/pipeline/pre_process_pipeline.rb
+++ b/lib/banzai/pipeline/pre_process_pipeline.rb
@@ -2,7 +2,8 @@ module Banzai
module Pipeline
class PreProcessPipeline < BasePipeline
def self.filters
- [
+ FilterArray[
+ Filter::YamlFrontMatterFilter
]
end