Sha256: b6441b3b04a4199059b40224b6aab522466f1529a152e5eb121ac6113906bc84

Contents?: true

Size: 420 Bytes

Versions: 14

Compression:

Stored size: 420 Bytes

Contents

# encoding: utf-8

module Nanoc3::Filters
  class RedCloth < Nanoc3::Filter

    # Runs the content through [RedCloth](http://redcloth.org/).
    # This method takes no options.
    #
    # @param [String] content The content to filter
    #
    # @return [String] The filtered content
    def run(content, params={})
      require 'redcloth'

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

  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
nanoc3-3.1.9 lib/nanoc3/filters/redcloth.rb
nanoc3-3.1.8 lib/nanoc3/filters/redcloth.rb
nanoc3-3.1.7 lib/nanoc3/filters/redcloth.rb
nanoc3-3.1.6 lib/nanoc3/filters/redcloth.rb
nanoc3-3.1.5 lib/nanoc3/filters/redcloth.rb
nanoc3-3.1.4 lib/nanoc3/filters/redcloth.rb
nanoc3-3.2.0a2 lib/nanoc3/filters/redcloth.rb
nanoc3-3.1.3 lib/nanoc3/filters/redcloth.rb
nanoc3-3.2.0a1 lib/nanoc3/filters/redcloth.rb
nanoc3-3.1.2 lib/nanoc3/filters/redcloth.rb
nanoc3-3.1.1 lib/nanoc3/filters/redcloth.rb
nanoc3-3.1.0 lib/nanoc3/filters/redcloth.rb
nanoc3-3.1.0rc1 lib/nanoc3/filters/redcloth.rb
nanoc3-3.1.0b2 lib/nanoc3/filters/redcloth.rb