Module: Ramaze::Helper::Maruku

Defined in:
lib/ramaze/helper/maruku.rb

Instance Method Summary collapse

Instance Method Details

#maruku(text) ⇒ String

Shortcut to generate HTML from Markdown code using Maruku

Parameters:

  • text (#to_str)

    the markdown to be converted

Returns:

  • (String)

    html generated from text

Author:

  • manveru



11
12
13
# File 'lib/ramaze/helper/maruku.rb', line 11

def maruku(text)
  ::Maruku.new(text.to_str).to_html
end