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 29 def self.call(context) 30 $uid = 0 # fix for invalid fragment IDs on second run 31 context.content = ::Maruku.new(context.content, :on_error => :raise).to_html 32 context 33 end