Sha256: 3656e47303fc2c82aa5d03501aa86def0b352d72e26f12342f4be6be872d670d
Contents?: true
Size: 590 Bytes
Versions: 2
Compression:
Stored size: 590 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.8.0 | lib/nanoc/filters/rdoc.rb |
nanoc-3.7.5 | lib/nanoc/filters/rdoc.rb |