Module: Webgen::ContentProcessor::Maruku
- Defined in:
- lib/webgen/content_processor/maruku.rb
Overview
Processes content in Markdown format using the maruku
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.
30 31 32 33 34 |
# File 'lib/webgen/content_processor/maruku.rb', line 30 def self.call(context) $uid = 0 # fix for invalid fragment IDs on second run context.content = ::Maruku.new(context.content, :on_error => :raise).to_html context end |