Parent

Methods

Class 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 9
 9:     def call(context)
10:       require 'rdiscount'
11:       context.content = ::RDiscount.new(context.content).to_html
12:       context
13:     rescue LoadError
14:       raise Webgen::LoadError.new('rdiscount', self.class.name, context.dest_node, 'rdiscount')
15:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.