module Webgen::ContentProcessor::RDiscount

Processes content in Markdown markup with the fast rdiscount library.

Public Class Methods

call(context) click to toggle source

Convert the content in context to HTML.

   # File lib/webgen/content_processor/r_discount.rb
12 def self.call(context)
13   context.content = ::RDiscount.new(context.content).to_html
14   context
15 end