Sha256: 735b42e412e9d8c42975d109698af53273f73c5d2f07ab3a16fadf585931908e
Contents?: true
Size: 482 Bytes
Versions: 16
Compression:
Stored size: 482 Bytes
Contents
# encoding: utf-8 module Nanoc3::Filters class Kramdown < Nanoc3::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={}) require 'kramdown' # Get result ::Kramdown::Document.new(content, params).to_html end end end
Version data entries
16 entries across 16 versions & 1 rubygems