Sha256: 41950c87dc43403e726e5aa386db0c84039b738473acae34d92e5165f69ec476
Contents?: true
Size: 489 Bytes
Versions: 8
Compression:
Stored size: 489 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
8 entries across 8 versions & 1 rubygems