Class: Eggplant::Markdown

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

Instance Method Summary collapse

Constructor Details

#initialize(markdown) ⇒ Markdown

Returns a new instance of Markdown.



6
7
8
# File 'lib/eggplant/markdown.rb', line 6

def initialize(markdown)
  @markdown = markdown
end

Instance Method Details

#to_htmlObject



10
11
12
13
14
# File 'lib/eggplant/markdown.rb', line 10

def to_html
  highlight!
  #CGI.unescapeHTML 
  doc.search('body > *').to_html
end