Sha256: 9bd26abe027f451cd98455994ac4c4c5ddb17863f7f1498e8de0f7af905e6d9b
Contents?: true
Size: 591 Bytes
Versions: 2
Compression:
Stored size: 591 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://docs.seattlerb.org/rdoc/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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
nanoc-3.7.3 | lib/nanoc/filters/rdoc.rb |
nanoc-3.7.2 | lib/nanoc/filters/rdoc.rb |