Sha256: 7465c243982c2352e0f87255a1c670e4aed360f3c61d3a75914c9f44a13eca4a

Contents?: true

Size: 521 Bytes

Versions: 12

Compression:

Stored size: 521 Bytes

Contents

require "github/markup/implementation"
require "rdoc"
require "rdoc/markup/to_html"

module GitHub
  module Markup
    class RDoc < Implementation
      def initialize
        super(/rdoc/, ["RDoc"])
      end

      def render(filename, content, options: {})
        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

12 entries across 12 versions & 2 rubygems

Version Path
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/github-markup-5.0.1/lib/github/markup/rdoc.rb
github-markup-5.0.1 lib/github/markup/rdoc.rb
github-markup-5.0.0 lib/github/markup/rdoc.rb
github-markup-4.0.2 lib/github/markup/rdoc.rb
github-markup-4.0.1 lib/github/markup/rdoc.rb
github-markup-4.0.0 lib/github/markup/rdoc.rb
github-markup-3.0.5 lib/github/markup/rdoc.rb
github-markup-3.0.4 lib/github/markup/rdoc.rb
github-markup-3.0.3 lib/github/markup/rdoc.rb
github-markup-3.0.2 lib/github/markup/rdoc.rb
github-markup-3.0.1 lib/github/markup/rdoc.rb
github-markup-3.0.0 lib/github/markup/rdoc.rb