Sha256: dd431ae558451c2968717e11a6fd7a996e0e802d6638102988277c111d27563b
Contents?: true
Size: 491 Bytes
Versions: 2
Compression:
Stored size: 491 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
nanoc-3.6.9 | lib/nanoc/filters/pandoc.rb |
nanoc-3.6.8 | lib/nanoc/filters/pandoc.rb |