Sha256: 81e6715a28020d3ba8946a68a2d4e2ce7439ea91e0b6fdc017a24feada9a6f00

Contents?: true

Size: 208 Bytes

Versions: 1

Compression:

Stored size: 208 Bytes

Contents

module Nanoc2::Filters
  class RedCloth < Nanoc2::Filter

    identifiers :redcloth

    def run(content)
      require 'redcloth'

      # Get result
      ::RedCloth.new(content).to_html
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
nanoc2-2.2.3 lib/nanoc2/filters/redcloth.rb