Class: Tilt::RedcarpetTemplate

Inherits:
Object
  • Object
show all
Defined in:
lib/gmd/redcarpet_template_fix.rb

Overview

Fix for redcarpet

Instance Method Summary collapse

Instance Method Details

#prepareObject



6
7
8
9
# File 'lib/gmd/redcarpet_template_fix.rb', line 6

def prepare
  klass = [Redcarpet2, Redcarpet1].detect { |e| e.engine_initialized? }
  @engine = klass.new(file, line, options) { data }
end