Class: TextileEngine

Inherits:
Object
  • Object
show all
Defined in:
lib/markd/engines.rb

Instance Method Summary collapse

Constructor Details

#initializeTextileEngine

Returns a new instance of TextileEngine.



24
25
26
# File 'lib/markd/engines.rb', line 24

def initialize
  require 'RedCloth'
end

Instance Method Details

#to_html(src) ⇒ Object



28
29
30
# File 'lib/markd/engines.rb', line 28

def to_html(src)
  RedCloth.new(src).to_html
end