class Apipie::Markup::Markdown

Public Instance Methods

to_html(text) click to toggle source
# File lib/apipie/markup.rb, line 26
def to_html(text)
  @redcarpet.render(text)
end

Public Class Methods

new() click to toggle source
# File lib/apipie/markup.rb, line 21
def initialize
  require 'redcarpet'
  @redcarpet ||= ::Redcarpet::Markdown.new(::Redcarpet::Render::HTML.new)
end