Sha256: 4291894a045909968fd4ccb0be3ad0e8f3450b3088e17970ec912aed153a68fe

Contents?: true

Size: 216 Bytes

Versions: 5

Compression:

Stored size: 216 Bytes

Contents

module Nanoc::Filter::Textile
  class TextileFilter < Nanoc::Filter

    identifiers :textile, :redcloth

    def run(content)
      nanoc_require 'redcloth'

      ::RedCloth.new(content).to_html
    end

  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

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