Sha256: 34d6b3d020062cb6ff4ddc49eb2e6241096d178531d5c1af3594f4fed24ab1db

Contents?: true

Size: 459 Bytes

Versions: 6

Compression:

Stored size: 459 Bytes

Contents

# encoding: utf-8

module Nanoc::Filters
  class Maruku < Nanoc::Filter

    requires 'maruku'

    # Runs the content through [Maruku](http://maruku.rubyforge.org/).
    # Parameters passed to this filter will be passed on to Maruku.
    #
    # @param [String] content The content to filter
    #
    # @return [String] The filtered content
    def run(content, params = {})
      # Get result
      ::Maruku.new(content, params).to_html
    end

  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
nanoc-3.7.1 lib/nanoc/filters/maruku.rb
nanoc-3.7.0 lib/nanoc/filters/maruku.rb
nanoc-3.6.11 lib/nanoc/filters/maruku.rb
nanoc-3.6.10 lib/nanoc/filters/maruku.rb
nanoc-3.6.9 lib/nanoc/filters/maruku.rb
nanoc-3.6.8 lib/nanoc/filters/maruku.rb