Sha256: 58ae000d486c45abac051646963c25d0ef8a93d7be36a1ffe763091a10cb0524
Contents?: true
Size: 660 Bytes
Versions: 7
Compression:
Stored size: 660 Bytes
Contents
module Apipie module Markup class RDoc def initialize require 'rdoc' require 'rdoc/markup/to_html' @rdoc ||= ::RDoc::Markup::ToHtml.new end def to_html(text) @rdoc.convert(text) end end class Markdown def initialize require 'redcarpet' @redcarpet ||= ::Redcarpet::Markdown.new(::Redcarpet::Render::HTML.new) end def to_html(text) @redcarpet.render(text) end end class Textile def initialize require 'RedCloth' end def to_html(text) RedCloth.new(text).to_html end end end end
Version data entries
7 entries across 7 versions & 1 rubygems