Module: Retter::Markdown

Extended by:
Configurable
Defined in:
lib/retter/markdown.rb,
lib/retter/markdown/code_ray_renderer.rb,
lib/retter/markdown/pygments_renderer.rb

Defined Under Namespace

Classes: CodeRayRenderer, PygmentsRenderer

Class Method Summary collapse

Methods included from Configurable

configurable, define_configurable_method, define_instance_shortcut_method

Class Method Details

.instanceObject



15
16
17
18
19
20
21
22
23
24
25
26
27
28
# File 'lib/retter/markdown.rb', line 15

def instance
  @instances ||= {}

  @instances[renderer.name] ||= Redcarpet::Markdown.new(
    renderer,
    autolink:            true,
    space_after_headers: true,
    fenced_code_blocks:  true,
    strikethrough:       true,
    superscript:         true,
    fenced_code_blocks:  true,
    tables:              true
  )
end