Class: Apipie::Markup::Markdown

Inherits:
Object
  • Object
show all
Defined in:
lib/apipie/markup.rb

Instance Method Summary collapse

Constructor Details

#initializeMarkdown

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