Class: Webgen::ContentProcessor::RDiscount
- Inherits:
-
Object
- Object
- Webgen::ContentProcessor::RDiscount
- Defined in:
- lib/webgen/contentprocessor/rdiscount.rb
Overview
Processes content in Markdown markup with the fast rdiscount
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/rdiscount.rb', line 9 def call(context) require 'rdiscount' context.content = ::RDiscount.new(context.content).to_html context end |