Class: Webgen::ContentProcessor::RedCloth
- Inherits:
-
Object
- Object
- Webgen::ContentProcessor::RedCloth
- Defined in:
- lib/webgen/contentprocessor/redcloth.rb
Overview
Processes content in Textile format using the redcloth
library.
Instance Method Summary collapse
-
#call(context) ⇒ Object
Convert the content in
context
to HTML.
Instance Method Details
#call(context) ⇒ Object
Convert the content in context
to HTML.
9 10 11 12 13 |
# File 'lib/webgen/contentprocessor/redcloth.rb', line 9 def call(context) require 'redcloth' context.content = ::RedCloth.new(context.content).to_html context end |