Sha256: 450baee4490aa86495133d39906874b409d4198f7fffb205b60814095a9328e8

Contents?: true

Size: 460 Bytes

Versions: 16

Compression:

Stored size: 460 Bytes

Contents

# encoding: utf-8

module Nanoc3::Filters
  class Maruku < Nanoc3::Filter

    # 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={})
      require 'maruku'

      # Get result
      ::Maruku.new(content, params).to_html
    end

  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
nanoc3-3.1.9 lib/nanoc3/filters/maruku.rb
nanoc3-3.1.8 lib/nanoc3/filters/maruku.rb
nanoc3-3.2.0a4 lib/nanoc3/filters/maruku.rb
nanoc3-3.1.7 lib/nanoc3/filters/maruku.rb
nanoc3-3.1.6 lib/nanoc3/filters/maruku.rb
nanoc3-3.2.0a3 lib/nanoc3/filters/maruku.rb
nanoc3-3.1.5 lib/nanoc3/filters/maruku.rb
nanoc3-3.1.4 lib/nanoc3/filters/maruku.rb
nanoc3-3.2.0a2 lib/nanoc3/filters/maruku.rb
nanoc3-3.1.3 lib/nanoc3/filters/maruku.rb
nanoc3-3.2.0a1 lib/nanoc3/filters/maruku.rb
nanoc3-3.1.2 lib/nanoc3/filters/maruku.rb
nanoc3-3.1.1 lib/nanoc3/filters/maruku.rb
nanoc3-3.1.0 lib/nanoc3/filters/maruku.rb
nanoc3-3.1.0rc1 lib/nanoc3/filters/maruku.rb
nanoc3-3.1.0b2 lib/nanoc3/filters/maruku.rb