Sha256: 544a3e62ec06baf5499e7a7a8267aef3e508d696b9e4a10c132ac50dd8026722
Contents?: true
Size: 590 Bytes
Versions: 32
Compression:
Stored size: 590 Bytes
Contents
module Nanoc::Filters # @api private class Kramdown < Nanoc::Filter requires 'kramdown' # Runs the content through [Kramdown](http://kramdown.gettalong.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 = {}) document = ::Kramdown::Document.new(content, params) document.warnings.each do |warning| $stderr.puts "kramdown warning: #{warning}" end document.to_html end end end
Version data entries
32 entries across 32 versions & 1 rubygems