Sha256: f839ce735750aad20b7a849c3c83f1a833dce8a12aed0c63025df9261b21da9e

Contents?: true

Size: 432 Bytes

Versions: 3

Compression:

Stored size: 432 Bytes

Contents

module Nanoc::Filters
  # @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

3 entries across 3 versions & 1 rubygems

Version Path
nanoc-4.4.7 lib/nanoc/filters/typogruby.rb
nanoc-4.4.6 lib/nanoc/filters/typogruby.rb
nanoc-4.4.5 lib/nanoc/filters/typogruby.rb