Sha256: 61641776e65de320344d853e4fdee55c0df3268b84555ee6af69b62e7dd87984

Contents?: true

Size: 516 Bytes

Versions: 90

Compression:

Stored size: 516 Bytes

Contents

# frozen_string_literal: true

module Nanoc::Filters
  # @api private
  class Maruku < Nanoc::Filter
    identifier :maruku

    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

90 entries across 90 versions & 1 rubygems

Version Path
nanoc-4.9.4 lib/nanoc/filters/maruku.rb
nanoc-4.9.3 lib/nanoc/filters/maruku.rb
nanoc-4.9.2 lib/nanoc/filters/maruku.rb
nanoc-4.9.1 lib/nanoc/filters/maruku.rb
nanoc-4.9.0 lib/nanoc/filters/maruku.rb
nanoc-4.8.19 lib/nanoc/filters/maruku.rb
nanoc-4.8.18 lib/nanoc/filters/maruku.rb
nanoc-4.8.17 lib/nanoc/filters/maruku.rb
nanoc-4.8.16 lib/nanoc/filters/maruku.rb
nanoc-4.8.15 lib/nanoc/filters/maruku.rb
nanoc-4.8.14 lib/nanoc/filters/maruku.rb
nanoc-4.8.13 lib/nanoc/filters/maruku.rb
nanoc-4.8.12 lib/nanoc/filters/maruku.rb
nanoc-4.8.11 lib/nanoc/filters/maruku.rb
nanoc-4.8.10 lib/nanoc/filters/maruku.rb
nanoc-4.8.9 lib/nanoc/filters/maruku.rb
nanoc-4.8.8 lib/nanoc/filters/maruku.rb
nanoc-4.8.7 lib/nanoc/filters/maruku.rb
nanoc-4.8.6 lib/nanoc/filters/maruku.rb
nanoc-4.8.5 lib/nanoc/filters/maruku.rb