Class: MarkdownEngine

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

Instance Method Summary collapse

Constructor Details

#initializeMarkdownEngine

Returns a new instance of MarkdownEngine.



4
5
6
# File 'lib/markd/engines.rb', line 4

def initialize
  require 'bluecloth'
end

Instance Method Details

#to_html(src) ⇒ Object



8
9
10
# File 'lib/markd/engines.rb', line 8

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