Sha256: b8948bdb117ad8bc3a6f4142b24f9650a90c368a7ddd7c2ee1bd4e2e7e3aa787

Contents?: true

Size: 452 Bytes

Versions: 15

Compression:

Stored size: 452 Bytes

Contents

# encoding: utf-8

require 'maruku'

module Nanoc::Filters
  class Maruku < Nanoc::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={})
      # Get result
      ::Maruku.new(content, params).to_html
    end

  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
nanoc-3.5.0 lib/nanoc/filters/maruku.rb
nanoc-3.5.0b2 lib/nanoc/filters/maruku.rb
nanoc-3.5.0b1 lib/nanoc/filters/maruku.rb
nanoc-3.4.3 lib/nanoc/filters/maruku.rb
nanoc-3.4.2 lib/nanoc/filters/maruku.rb
nanoc-3.4.1 lib/nanoc/filters/maruku.rb
nanoc-3.4.0 lib/nanoc/filters/maruku.rb
nanoc-3.3.7 lib/nanoc/filters/maruku.rb
nanoc-3.3.6 lib/nanoc/filters/maruku.rb
nanoc-3.3.5 lib/nanoc/filters/maruku.rb
nanoc-3.3.4 lib/nanoc/filters/maruku.rb
nanoc-3.3.3 lib/nanoc/filters/maruku.rb
nanoc-3.3.2 lib/nanoc/filters/maruku.rb
nanoc-3.3.1 lib/nanoc/filters/maruku.rb
nanoc-3.3.0 lib/nanoc/filters/maruku.rb