module Webgen::ContentProcessor::Maruku
Processes content in Markdown format using the maruku library.
Public Class Methods
call(context)
click to toggle source
Convert the content in context to HTML.
# File lib/webgen/content_processor/maruku.rb, line 29 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