Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-01-12 07:10:08 +0300
committerDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-01-14 17:09:31 +0300
commit4872b319c8152837bd36e7fc0a5ad912d1c3ef90 (patch)
tree1caed10e66de5b2f1c45e986e20e2baa599804d7 /lib
parenta6a5990ee5f504107944c3bba5c18dbdea9f5207 (diff)
Use the WikiPipeline when rendering the wiki markdown content
Diffstat (limited to 'lib')
-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