Sha256: 3cde49fccb8a76eac20bfe654be5294933c687c1f8ebf9d1b28599ab99e256b8
Contents?: true
Size: 479 Bytes
Versions: 8
Compression:
Stored size: 479 Bytes
Contents
# encoding: utf-8 module Nanoc::Filters class Kramdown < Nanoc::Filter requires 'kramdown' # Runs the content through [Kramdown](http://kramdown.rubyforge.org/). # Parameters passed to this filter will be passed on to Kramdown. # # @param [String] content The content to filter # # @return [String] The filtered content def run(content, params={}) # Get result ::Kramdown::Document.new(content, params).to_html end end end
Version data entries
8 entries across 8 versions & 1 rubygems