Class: Gitlab::Markdown::Pipeline

Inherits:
Object
  • Object
show all
Defined in:
lib/gitlab/markdown/pipeline.rb

Class Method Summary collapse

Class Method Details

.[](name) ⇒ Object


4
5
6
7
# File 'lib/gitlab/markdown/pipeline.rb', line 4

def self.[](name)
  name ||= :full
  const_get("#{name.to_s.camelize}Pipeline")
end

.filtersObject


9
10
11
# File 'lib/gitlab/markdown/pipeline.rb', line 9

def self.filters
  []
end

.html_pipelineObject


17
18
19
# File 'lib/gitlab/markdown/pipeline.rb', line 17

def self.html_pipeline
  @html_pipeline ||= HTML::Pipeline.new(filters)
end

.transform_context(context) ⇒ Object


13
14
15
# File 'lib/gitlab/markdown/pipeline.rb', line 13

def self.transform_context(context)
  context
end