lib/github/markup/rdoc.rb in github-markup-1.0.0 vs lib/github/markup/rdoc.rb in github-markup-1.0.1
- old
+ new
@@ -7,10 +7,14 @@
def initialize(content)
@content = content
end
def to_html
- h = ::RDoc::Markup::ToHtml.new
+ 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
end
end
end