Sha256: e97d77976480bf0c744378ab27cfb0a05a4d4d2c799ee281ac0a6750f9f554e1
Contents?: true
Size: 802 Bytes
Versions: 6
Compression:
Stored size: 802 Bytes
Contents
# frozen_string_literal: true module ApipieDSL module Markup class RDoc def initialize require 'rdoc' require 'rdoc/markup/to_html' @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 def to_html(text) @rdoc.convert(text) 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
6 entries across 6 versions & 1 rubygems