Sha256: c9bf90d297791040e03b1d691c2b8079cf8b5c911274cdb010ad4695f2017533
Contents?: true
Size: 478 Bytes
Versions: 2
Compression:
Stored size: 478 Bytes
Contents
# encoding: utf-8 module Nanoc::Filters class RDoc < Nanoc::Filter requires 'rdoc/markup', 'rdoc/markup/to_html' # 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={}) ::RDoc::Markup.new.convert(content, ::RDoc::Markup::ToHtml.new) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
nanoc-3.6.1 | lib/nanoc/filters/rdoc.rb |
nanoc-3.6.0 | lib/nanoc/filters/rdoc.rb |