Sha256: 0fb96683dcfa7a58c9a354eeaafc00a0b588978986ed7531b770cec2c4e93898
Contents?: true
Size: 484 Bytes
Versions: 7
Compression:
Stored size: 484 Bytes
Contents
# encoding: utf-8 require 'pandoc-ruby' module Nanoc::Filters class Pandoc < Nanoc::Filter # 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