Sha256: 16ea3786cdfda875054f4c25be3c646beefdc63ff02b069632c362cf9ff332a1

Contents?: true

Size: 438 Bytes

Versions: 4

Compression:

Stored size: 438 Bytes

Contents

# encoding: utf-8

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

4 entries across 4 versions & 1 rubygems

Version Path
nanoc-4.0.0b2 lib/nanoc/filters/bluecloth.rb
nanoc-4.0.0b1 lib/nanoc/filters/bluecloth.rb
nanoc-4.0.0a2 lib/nanoc/filters/bluecloth.rb
nanoc-4.0.0a1 lib/nanoc/filters/bluecloth.rb