Sha256: 7d5014d7b651e8e22946c34e255e9bae240e5a301105f50dab45d0a041898143

Contents?: true

Size: 419 Bytes

Versions: 42

Compression:

Stored size: 419 Bytes

Contents

module Nanoc::Filters
  # @api private
  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

42 entries across 42 versions & 1 rubygems

Version Path
nanoc-4.4.7 lib/nanoc/filters/bluecloth.rb
nanoc-4.4.6 lib/nanoc/filters/bluecloth.rb
nanoc-4.4.5 lib/nanoc/filters/bluecloth.rb
nanoc-4.4.4 lib/nanoc/filters/bluecloth.rb
nanoc-4.4.3 lib/nanoc/filters/bluecloth.rb
nanoc-4.4.2 lib/nanoc/filters/bluecloth.rb
nanoc-4.4.1 lib/nanoc/filters/bluecloth.rb
nanoc-4.4.0 lib/nanoc/filters/bluecloth.rb
nanoc-4.3.8 lib/nanoc/filters/bluecloth.rb
nanoc-4.3.7 lib/nanoc/filters/bluecloth.rb
nanoc-4.3.6 lib/nanoc/filters/bluecloth.rb
nanoc-4.3.5 lib/nanoc/filters/bluecloth.rb
nanoc-4.3.4 lib/nanoc/filters/bluecloth.rb
nanoc-4.3.3 lib/nanoc/filters/bluecloth.rb
nanoc-4.3.2 lib/nanoc/filters/bluecloth.rb
nanoc-4.3.1 lib/nanoc/filters/bluecloth.rb
nanoc-4.3.0 lib/nanoc/filters/bluecloth.rb
nanoc-4.2.4 lib/nanoc/filters/bluecloth.rb
nanoc-4.2.3 lib/nanoc/filters/bluecloth.rb
nanoc-4.2.2 lib/nanoc/filters/bluecloth.rb