Processes content in kramdown format (based on Markdown) using the kramdown library.
Convert the content in context to HTML.
# File lib/webgen/contentprocessor/kramdown.rb, line 11 11: def call(context) 12: require 'kramdown' 13: require 'webgen/contentprocessor/kramdown/html' 14: doc = ::Kramdown::Document.new(context.content, 15: context.website.config['contentprocessor.kramdown.options'].merge(context.options['contentprocessor.kramdown.options'] || {})) 16: context.content = KramdownHtmlConverter.convert(doc, context) 17: doc.warnings.each do |warn| 18: log(:warn) { "Warning while parsing <#{context.ref_node}> with kramdown: #{warn}" } 19: end 20: context 21: rescue LoadError 22: raise Webgen::LoadError.new('kramdown', self.class.name, context.dest_node, 'kramdown') 23: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.