Sha256: 74b61f7e4d32bb57c415139565d9d2234de8ad47577a44607cef6951885cf178
Contents?: true
Size: 586 Bytes
Versions: 6
Compression:
Stored size: 586 Bytes
Contents
# encoding: utf-8 module Nanoc::Filters class RDoc < Nanoc::Filter requires 'rdoc' def self.setup gem 'rdoc', '~> 4.0' super end # Runs the content through [RDoc::Markup](http://rdoc.rubyforge.org/RDoc/Markup.html). # This method takes no options. # # @param [String] content The content to filter # # @return [String] The filtered content def run(content, params = {}) options = ::RDoc::Options.new to_html = ::RDoc::Markup::ToHtml.new(options) ::RDoc::Markup.new.convert(content, to_html) end end end
Version data entries
6 entries across 6 versions & 1 rubygems