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.
25 26 27 |
# File 'lib/apipie/markup.rb', line 25 def initialize require 'maruku' end |
Instance Method Details
#to_html(text) ⇒ Object
29 30 31 |
# File 'lib/apipie/markup.rb', line 29 def to_html(text) Maruku.new(text).to_html end |