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, line 12 def self.call(context) context.content = ::RDiscount.new(context.content).to_html context end