diff --git a/lib/github/markup/rdoc.rb b/lib/github/markup/rdoc.rb index 8332e402..0d58f826 100644 --- a/lib/github/markup/rdoc.rb +++ b/lib/github/markup/rdoc.rb @@ -9,7 +9,11 @@ def initialize(content) end def to_html - h = ::RDoc::Markup::ToHtml.new + if Gem::Version.new(::RDoc::VERSION) < Gem::Version.new('4.0.0') + h = ::RDoc::Markup::ToHtml.new + else + h = ::RDoc::Markup::ToHtml.new(::RDoc::Options.new) + end h.convert(@content) end end