Sha256: b407663183abc3843851fa3a717f7cc932141042cc9de356f6c7b3df12fee7ec
Contents?: true
Size: 510 Bytes
Versions: 4
Compression:
Stored size: 510 Bytes
Contents
module Nanoc::Filters class RDoc < Nanoc::Filter identifiers :rdoc def run(content) begin # new RDoc require 'rdoc/markup' require 'rdoc/markup/to_html' ::RDoc::Markup.new.convert(content, ::RDoc::Markup::ToHtml.new) rescue LoadError # old RDoc require 'rdoc/markup/simple_markup' require 'rdoc/markup/simple_markup/to_html' ::SM::SimpleMarkup.new.convert(content, ::SM::ToHtml.new) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
nanoc-2.1.6 | lib/nanoc/filters/rdoc.rb |
nanoc-2.2 | lib/nanoc/filters/rdoc.rb |
nanoc-2.2.1 | lib/nanoc/filters/rdoc.rb |
nanoc-2.2.2 | lib/nanoc/filters/rdoc.rb |