Class: Apipie::Markup::Markdown
- Inherits:
-
Object
- Object
- Apipie::Markup::Markdown
- Defined in:
- lib/apipie/markup.rb
Instance Method Summary collapse
-
#initialize ⇒ Markdown
constructor
A new instance of Markdown.
- #to_html(text) ⇒ Object
Constructor Details
#initialize ⇒ Markdown
Returns a new instance of Markdown.
29 30 31 |
# File 'lib/apipie/markup.rb', line 29 def initialize require 'maruku' end |
Instance Method Details
#to_html(text) ⇒ Object
33 34 35 |
# File 'lib/apipie/markup.rb', line 33 def to_html(text) Maruku.new(text).to_html end |