Sha256: 0f647341b6d887516036cec80e10661ffb1966f588d8d02db853338cbcd7db6f

Contents?: true

Size: 472 Bytes

Versions: 4

Compression:

Stored size: 472 Bytes

Contents

# encoding: utf-8

module Nanoc::Filters
  # @since 3.2.0
  #
  # @api private
  class Typogruby < Nanoc::Filter
    requires 'typogruby'

    # Runs the content through [Typogruby](http://avdgaag.github.com/typogruby/).
    # This method takes no options.
    #
    # @param [String] content The content to filter
    #
    # @return [String] The filtered content
    def run(content, _params = {})
      # Get result
      ::Typogruby.improve(content)
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
nanoc-4.0.0b2 lib/nanoc/filters/typogruby.rb
nanoc-4.0.0b1 lib/nanoc/filters/typogruby.rb
nanoc-4.0.0a2 lib/nanoc/filters/typogruby.rb
nanoc-4.0.0a1 lib/nanoc/filters/typogruby.rb