Module: Webgen::ContentProcessor::RDiscount
- Defined in:
- lib/webgen/content_processor/r_discount.rb
Overview
Processes content in Markdown markup with the fast rdiscount
library.
Class Method Summary collapse
-
.call(context) ⇒ Object
Convert the content in
context
to HTML.
Class Method Details
.call(context) ⇒ Object
Convert the content in context
to HTML.
13 14 15 16 |
# File 'lib/webgen/content_processor/r_discount.rb', line 13 def self.call(context) context.content = ::RDiscount.new(context.content).to_html context end |