summaryrefslogtreecommitdiff
path: root/lib/banzai/pipeline
diff options
context:
space:
mode:
authorGabriel Mazetto <gabriel@gitlab.com>2016-04-01 00:17:37 -0300
committerGabriel Mazetto <gabriel@gitlab.com>2016-04-01 00:17:37 -0300
commit28266d9d610123d20333c6b05fcf83d1fb3e336a (patch)
tree6701842693419aa77c3fa46d37f6ffc6851855a8 /lib/banzai/pipeline
parent7d56d592cd7d1df718d59981af1ced9d0be8eaac (diff)
downloadgitlab-ce-28266d9d610123d20333c6b05fcf83d1fb3e336a.tar.gz
Added WikiLinkFilter
Diffstat (limited to 'lib/banzai/pipeline')
-rw-r--r--lib/banzai/pipeline/wiki_pipeline.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/banzai/pipeline/wiki_pipeline.rb b/lib/banzai/pipeline/wiki_pipeline.rb
index 0b5a9e0b2b8..1cdb3808961 100644
--- a/lib/banzai/pipeline/wiki_pipeline.rb
+++ b/lib/banzai/pipeline/wiki_pipeline.rb
@@ -2,8 +2,10 @@ module Banzai
module Pipeline
class WikiPipeline < FullPipeline
def self.filters
- @filters ||= super.insert_after(Filter::TableOfContentsFilter,
- Filter::GollumTagsFilter)
+ @filters ||= begin
+ super.insert_after(Filter::TableOfContentsFilter, Filter::GollumTagsFilter)
+ .insert_after(Filter::GollumTagsFilter, Filter::WikiLinkFilter)
+ end
end
end
end