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
12 def self.call(context)
13   doc = ::RedCloth.new(context.content)
14   doc.hard_breaks = context.website.config['content_processor.redcloth.hard_breaks']
15   context.content = doc.to_html
16   context
17 end