all repos — markup @ 61ade389c1e1c159359338f570d18464a44ddbc4

The code we use to render README.your_favorite_markup

Fix Rdoc render with ruby 2.0
Philippe Lafoucrière philippe.lafoucriere@gmail.com
Mon, 26 Aug 2013 12:47:22 +0000
commit

61ade389c1e1c159359338f570d18464a44ddbc4

parent

1d189e7da7f82750bc2b9d8b326a50b9dff21925

1 files changed, 5 insertions(+), 1 deletions(-)

jump to
M lib/github/markup/rdoc.rblib/github/markup/rdoc.rb

@@ -9,7 +9,11 @@ @content = 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