Sha256: a0676277aa9501133715840b1a9293ba74a3436c057a6a9934d212a8f93a7ccb

Contents?: true

Size: 422 Bytes

Versions: 8

Compression:

Stored size: 422 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.7.3 lib/nanoc/filters/bluecloth.rb
nanoc-3.7.2 lib/nanoc/filters/bluecloth.rb
nanoc-3.7.1 lib/nanoc/filters/bluecloth.rb
nanoc-3.7.0 lib/nanoc/filters/bluecloth.rb
nanoc-3.6.11 lib/nanoc/filters/bluecloth.rb
nanoc-3.6.10 lib/nanoc/filters/bluecloth.rb
nanoc-3.6.9 lib/nanoc/filters/bluecloth.rb
nanoc-3.6.8 lib/nanoc/filters/bluecloth.rb