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

base.rb « markdown_engines « filter « banzai « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 34f1d4d3da94cd215efe89fe1eafbbbe15ed6858 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# frozen_string_literal: true

module Banzai
  module Filter
    module MarkdownEngines
      class Base
        def initialize(context)
          @context = context
        end

        def render(text)
          raise NotImplementedError
        end

        private

        def sourcepos_disabled?
          @context[:no_sourcepos]
        end
      end
    end
  end
end