Sha256: b5c862979c72a4b74f8826438713ec6a3574dee064873aafa5ed7bae2ce65dd5

Contents?: true

Size: 488 Bytes

Versions: 7

Compression:

Stored size: 488 Bytes

Contents

# encoding: utf-8

module Nanoc::Filters
  class Pandoc < Nanoc::Filter

    requires 'pandoc-ruby'

    # Runs the content through [Pandoc](http://johnmacfarlane.net/pandoc/)
    # using [PandocRuby](https://github.com/alphabetum/pandoc-ruby). Options
    # are passed on to PandocRuby.
    #
    # @param [String] content The content to filter
    #
    # @return [String] The filtered content
    def run(content, *params)
      PandocRuby.convert(content, *params)
    end

  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
nanoc-3.7.4 lib/nanoc/filters/pandoc.rb
nanoc-3.7.3 lib/nanoc/filters/pandoc.rb
nanoc-3.7.2 lib/nanoc/filters/pandoc.rb
nanoc-3.7.1 lib/nanoc/filters/pandoc.rb
nanoc-3.7.0 lib/nanoc/filters/pandoc.rb
nanoc-3.6.11 lib/nanoc/filters/pandoc.rb
nanoc-3.6.10 lib/nanoc/filters/pandoc.rb