Sha256: 183b0e8645e08eac31be0c462feab523a34e3d0c6ee40fddf7ae2ad2752baed4
Contents?: true
Size: 510 Bytes
Versions: 3
Compression:
Stored size: 510 Bytes
Contents
require "github/markup/implementation" require "rdoc" require "rdoc/markup/to_html" module GitHub module Markup class RDoc < Implementation def initialize super([Linguist::Language["RDoc"]]) end def render(content) if ::RDoc::VERSION.to_i >= 4 h = ::RDoc::Markup::ToHtml.new(::RDoc::Options.new) else h = ::RDoc::Markup::ToHtml.new end h.convert(content) end def name "rdoc" end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
github-markup-1.4.8 | lib/github/markup/rdoc.rb |
github-markup-1.4.7 | lib/github/markup/rdoc.rb |
github-markup-1.4.6 | lib/github/markup/rdoc.rb |