summaryrefslogtreecommitdiff
path: root/lib/gitlab/markdown/pipeline/post_process_pipeline.rb
blob: 60cc32f490e4a66696b32201e6114313ddb52b4f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
require 'gitlab/markdown'

module Gitlab
  module Markdown
    class PostProcessPipeline < Pipeline
      def self.filters
        [
          Gitlab::Markdown::RelativeLinkFilter, 
          Gitlab::Markdown::RedactorFilter
        ]
      end

      def self.transform_context(context)
        context.merge(
          post_process: true
        )
      end
    end
  end
end