Class: MarkdownEngine
- Inherits:
-
Object
- Object
- MarkdownEngine
- Defined in:
- lib/markd/engines.rb
Instance Method Summary collapse
-
#initialize ⇒ MarkdownEngine
constructor
A new instance of MarkdownEngine.
- #to_html(src) ⇒ Object
Constructor Details
#initialize ⇒ MarkdownEngine
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 |