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