Class: Eggplant::Markdown
- Inherits:
-
Object
- Object
- Eggplant::Markdown
- Defined in:
- lib/eggplant/markdown.rb
Instance Method Summary collapse
-
#initialize(markdown) ⇒ Markdown
constructor
A new instance of Markdown.
- #to_html ⇒ Object
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_html ⇒ Object
10 11 12 13 14 |
# File 'lib/eggplant/markdown.rb', line 10 def to_html highlight! #CGI.unescapeHTML doc.search('body > *').to_html end |