Sha256: e2bc885623de501fc5fb68d44e6541e6a57facfeb24bd1534fa2f21b65e880b2
Contents?: true
Size: 465 Bytes
Versions: 3
Compression:
Stored size: 465 Bytes
Contents
# encoding: utf-8 module Nanoc::Filters class Maruku < Nanoc::Filter requires 'maruku' # Runs the content through [Maruku](https://github.com/bhollis/maruku/). # Parameters passed to this filter will be passed on to Maruku. # # @param [String] content The content to filter # # @return [String] The filtered content def run(content, params = {}) # Get result ::Maruku.new(content, params).to_html end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
nanoc-3.7.4 | lib/nanoc/filters/maruku.rb |
nanoc-3.7.3 | lib/nanoc/filters/maruku.rb |
nanoc-3.7.2 | lib/nanoc/filters/maruku.rb |