Sha256: 45c50df5a5f83810368215bcf9c2db4a8b6852fae5396d00352ca05c659eb02e
Contents?: true
Size: 474 Bytes
Versions: 15
Compression:
Stored size: 474 Bytes
Contents
# encoding: utf-8 require 'kramdown' module Nanoc::Filters class Kramdown < Nanoc::Filter # 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
15 entries across 15 versions & 1 rubygems