Parent

Methods

Class/Module Index [+]

Quicksearch

Webgen::ContentProcessor::RDiscount

Processes content in Markdown markup with the fast rdiscount library.

Public Instance Methods

call(context) click to toggle source

Convert the content in context to HTML.

# File lib/webgen/contentprocessor/rdiscount.rb, line 8
def call(context)
  require 'rdiscount'
  context.content = ::RDiscount.new(context.content).to_html
  context
rescue LoadError
  raise Webgen::LoadError.new('rdiscount', self.class.name, context.dest_node, 'rdiscount')
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.