Sha256: 8a0f7c3d1f807c2a1e4435ebd32e77ab7610bbe580ba688a7db4e3c71572ae79

Contents?: true

Size: 417 Bytes

Versions: 8

Compression:

Stored size: 417 Bytes

Contents

# encoding: utf-8

require 'bluecloth'

module Nanoc3::Filters
  class BlueCloth < Nanoc3::Filter

    # 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
nanoc3-3.2.4 lib/nanoc3/filters/bluecloth.rb
nanoc3-3.2.3 lib/nanoc3/filters/bluecloth.rb
nanoc3-3.2.2 lib/nanoc3/filters/bluecloth.rb
nanoc3-3.2.1 lib/nanoc3/filters/bluecloth.rb
nanoc3-3.2.0 lib/nanoc3/filters/bluecloth.rb
nanoc3-3.2.0b3 lib/nanoc3/filters/bluecloth.rb
nanoc3-3.2.0b2 lib/nanoc3/filters/bluecloth.rb
nanoc3-3.2.0b1 lib/nanoc3/filters/bluecloth.rb