module Webgen::ContentProcessor::RedCloth

Processes content in Textile format using the redcloth library.

Public Class Methods

call(context) click to toggle source

Convert the content in context to HTML.

# File lib/webgen/content_processor/red_cloth.rb, line 12
def self.call(context)
  doc = ::RedCloth.new(context.content)
  doc.hard_breaks = context.website.config['content_processor.redcloth.hard_breaks']
  context.content = doc.to_html
  context
end