Sha256: 85e0580aa9eee08ac54b1ccbce6d13ec471b2b25f6cc3e14fad9556898013c36

Contents?: true

Size: 463 Bytes

Versions: 2

Compression:

Stored size: 463 Bytes

Contents

# encoding: utf-8

module Nanoc::Filters
  class Maruku < Nanoc::Filter
    requires 'maruku'

    # Runs the content through [Maruku](https://github.com/bhollis/maruku/).
    # 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

2 entries across 2 versions & 1 rubygems

Version Path
nanoc-3.8.0 lib/nanoc/filters/maruku.rb
nanoc-3.7.5 lib/nanoc/filters/maruku.rb