Sha256: 497103c4687e82770d0f1461b087c82acffd92e147e26eb807391271ce3e89f3
Contents?: true
Size: 584 Bytes
Versions: 6
Compression:
Stored size: 584 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