Method: GitHub::Markup::RDoc#render

Defined in:
lib/github/markup/rdoc.rb

#render(filename, content, options: {}) ⇒ Object



12
13
14
15
16
17
18
19
# File 'lib/github/markup/rdoc.rb', line 12

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