summaryrefslogtreecommitdiff
path: root/lib/banzai/pipeline/post_process_pipeline.rb
diff options
context:
space:
mode:
authorJeroen Nijhof <jeroen@jeroennijhof.nl>2016-01-06 14:55:44 +0100
committerJeroen Nijhof <jeroen@jeroennijhof.nl>2016-01-06 14:55:44 +0100
commit9b28220f8874c7ab342286e74f0b21895a2dd777 (patch)
tree0b2ec2d97a95796893778623adabb975e0224b64 /lib/banzai/pipeline/post_process_pipeline.rb
parentd4690af8bc283c402e49cb8b3056c7de9d57e886 (diff)
parent8b39b8cd54bb73b485ee6ea7fc5d3bbfbe07cd5d (diff)
downloadgitlab-ce-9b28220f8874c7ab342286e74f0b21895a2dd777.tar.gz
Merge gitlab.com:gitlab-org/gitlab-ce
Diffstat (limited to 'lib/banzai/pipeline/post_process_pipeline.rb')
-rw-r--r--lib/banzai/pipeline/post_process_pipeline.rb20
1 files changed, 20 insertions, 0 deletions
diff --git a/lib/banzai/pipeline/post_process_pipeline.rb b/lib/banzai/pipeline/post_process_pipeline.rb
new file mode 100644
index 00000000000..148f24b6ce1
--- /dev/null
+++ b/lib/banzai/pipeline/post_process_pipeline.rb
@@ -0,0 +1,20 @@
+require 'banzai'
+
+module Banzai
+ module Pipeline
+ class PostProcessPipeline < BasePipeline
+ def self.filters
+ [
+ Filter::RelativeLinkFilter,
+ Filter::RedactorFilter
+ ]
+ end
+
+ def self.transform_context(context)
+ context.merge(
+ post_process: true
+ )
+ end
+ end
+ end
+end