Sha256: 56289dcc8894e1794ad136fd2de8d2cbc4039fa58aa47c9cf2c578e58a642208

Contents?: true

Size: 420 Bytes

Versions: 8

Compression:

Stored size: 420 Bytes

Contents

# encoding: utf-8

module Nanoc::Filters
  class BlueCloth < Nanoc::Filter

    requires 'bluecloth'

    # Runs the content through [BlueCloth](http://deveiate.org/projects/BlueCloth).
    # This method takes no options.
    #
    # @param [String] content The content to filter
    #
    # @return [String] The filtered content
    def run(content, params={})
      ::BlueCloth.new(content).to_html
    end

  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
nanoc-3.6.7 lib/nanoc/filters/bluecloth.rb
nanoc-3.6.6 lib/nanoc/filters/bluecloth.rb
nanoc-3.6.5 lib/nanoc/filters/bluecloth.rb
nanoc-3.6.4 lib/nanoc/filters/bluecloth.rb
nanoc-3.6.3 lib/nanoc/filters/bluecloth.rb
nanoc-3.6.2 lib/nanoc/filters/bluecloth.rb
nanoc-3.6.1 lib/nanoc/filters/bluecloth.rb
nanoc-3.6.0 lib/nanoc/filters/bluecloth.rb