Sha256: 8f22a0a6cb86772b3bbb6266f0545831c3f5dcf8a1563fbd4ebebf2a07bd187b
Contents?: true
Size: 768 Bytes
Versions: 12
Compression:
Stored size: 768 Bytes
Contents
module Apipie module Markup class RDoc def initialize require 'rdoc' require 'rdoc/markup/to_html' end def to_html(text) rdoc.convert(text) end private def rdoc if Gem::Version.new(::RDoc::VERSION) < Gem::Version.new('4.0.0') ::RDoc::Markup::ToHtml.new() else ::RDoc::Markup::ToHtml.new(::RDoc::Options.new) end end end class Markdown def initialize require 'maruku' end def to_html(text) Maruku.new(text).to_html 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
12 entries across 12 versions & 1 rubygems