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

wiki_pipeline.rb « pipeline « banzai « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: bc2bf1119710f8d649be0cc2d6f44d365ca714f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
require 'banzai'

module Banzai
  module Pipeline
    class WikiPipeline < FullPipeline
      def self.filters
        @filters ||= begin
                       filters = super
                       toc = filters.index(Filter::TableOfContentsFilter)
                       filters.insert(toc + 1, Filter::GollumTagsFilter)
                     end
      end
    end
  end
end