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
contextto HTML.
Instance Method Details
#call(context) ⇒ Object
Convert the content in context to HTML.
7 8 9 10 11 |
# File 'lib/webgen/contentprocessor/rdiscount.rb', line 7 def call(context) require 'rdiscount' context.content = ::RDiscount.new(context.content).to_html context end |