summaryrefslogtreecommitdiff
path: root/lib/banzai/pipeline
diff options
context:
space:
mode:
authorDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-01-12 02:10:08 -0200
committerDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-01-14 12:09:31 -0200
commit4872b319c8152837bd36e7fc0a5ad912d1c3ef90 (patch)
tree1caed10e66de5b2f1c45e986e20e2baa599804d7 /lib/banzai/pipeline
parenta6a5990ee5f504107944c3bba5c18dbdea9f5207 (diff)
downloadgitlab-ce-4872b319c8152837bd36e7fc0a5ad912d1c3ef90.tar.gz
Use the WikiPipeline when rendering the wiki markdown content
Diffstat (limited to 'lib/banzai/pipeline')
-rw-r--r--lib/banzai/pipeline/gollum_tags_pipeline.rb13
-rw-r--r--lib/banzai/pipeline/wiki_pipeline.rb9
2 files changed, 22 insertions, 0 deletions
diff --git a/lib/banzai/pipeline/gollum_tags_pipeline.rb b/lib/banzai/pipeline/gollum_tags_pipeline.rb
new file mode 100644
index 00000000000..1f98d3a183a
--- /dev/null
+++ b/lib/banzai/pipeline/gollum_tags_pipeline.rb
@@ -0,0 +1,13 @@
+require 'banzai'
+
+module Banzai
+ module Pipeline
+ class GollumTagsPipeline < BasePipeline
+ def self.filters
+ [
+ Filter::GollumTagsFilter
+ ]
+ end
+ end
+ end
+end
diff --git a/lib/banzai/pipeline/wiki_pipeline.rb b/lib/banzai/pipeline/wiki_pipeline.rb
new file mode 100644
index 00000000000..4635a8d6471
--- /dev/null
+++ b/lib/banzai/pipeline/wiki_pipeline.rb
@@ -0,0 +1,9 @@
+require 'banzai'
+
+module Banzai
+ module Pipeline
+ class WikiPipeline < CombinedPipeline.new(PlainMarkdownPipeline, GollumTagsPipeline, GfmPipeline)
+
+ end
+ end
+end