Sha256: e68ad9a38d141a6894f54d476c7cc34b50baca2f21976e1256934695cbbd5b38

Contents?: true

Size: 293 Bytes

Versions: 5

Compression:

Stored size: 293 Bytes

Contents

module Nanoc::Filter::RDoc
  class RDocFilter < Nanoc::Filter

    identifiers :rdoc

    def run(content)
      nanoc_require 'rdoc/markup/simple_markup'
      nanoc_require 'rdoc/markup/simple_markup/to_html'

      ::SM::SimpleMarkup.new.convert(content, SM::ToHtml.new)
    end

  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
nanoc-2.0.3 lib/nanoc/filters/rdoc.rb
nanoc-2.0 lib/nanoc/filters/rdoc.rb
nanoc-2.0.1 lib/nanoc/filters/rdoc.rb
nanoc-2.0.2 lib/nanoc/filters/rdoc.rb
nanoc-2.0.4 lib/nanoc/filters/rdoc.rb