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.



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