Sha256: fa8270b19ee1fddb9dfde4758459fee877ad57ecd302c5abd1a11a324c2482ff

Contents?: true

Size: 477 Bytes

Versions: 90

Compression:

Stored size: 477 Bytes

Contents

# frozen_string_literal: true

module Nanoc::Filters
  # @api private
  class BlueCloth < Nanoc::Filter
    identifier :bluecloth

    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

90 entries across 90 versions & 1 rubygems

Version Path
nanoc-4.12.5 lib/nanoc/filters/bluecloth.rb
nanoc-4.12.4 lib/nanoc/filters/bluecloth.rb
nanoc-4.12.3 lib/nanoc/filters/bluecloth.rb
nanoc-4.12.2 lib/nanoc/filters/bluecloth.rb
nanoc-4.12.1 lib/nanoc/filters/bluecloth.rb
nanoc-4.12.0 lib/nanoc/filters/bluecloth.rb
nanoc-4.11.23 lib/nanoc/filters/bluecloth.rb
nanoc-4.11.22 lib/nanoc/filters/bluecloth.rb
nanoc-4.11.21 lib/nanoc/filters/bluecloth.rb
nanoc-4.11.20 lib/nanoc/filters/bluecloth.rb
nanoc-4.11.19 lib/nanoc/filters/bluecloth.rb
nanoc-4.11.18 lib/nanoc/filters/bluecloth.rb
nanoc-4.11.17 lib/nanoc/filters/bluecloth.rb
nanoc-4.11.16 lib/nanoc/filters/bluecloth.rb
nanoc-4.11.15 lib/nanoc/filters/bluecloth.rb
nanoc-4.11.14 lib/nanoc/filters/bluecloth.rb
nanoc-4.11.13 lib/nanoc/filters/bluecloth.rb
nanoc-4.11.12 lib/nanoc/filters/bluecloth.rb
nanoc-4.11.11 lib/nanoc/filters/bluecloth.rb
nanoc-4.11.10 lib/nanoc/filters/bluecloth.rb