Permalink
Browse files

Made processing options actually work: Redcarpet expects hash, not Ar…

…ray.
  • Loading branch information...
1 parent 6e55c4e commit a5a2e1fbe10ae135f816e0fbf3ec8e0a6db177d7 @colszowka colszowka committed Sep 6, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/markerb.rb
View
@@ -4,7 +4,7 @@
module Markerb
mattr_accessor :processing_options, :renderer
- @@processing_options = []
+ @@processing_options = {}
@@renderer = Redcarpet::Render::HTML
class Handler
@@ -15,7 +15,7 @@ def erb_handler
def call(template)
compiled_source = erb_handler.call(template)
if template.formats.include?(:html)
- "Redcarpet::Markdown.new(Markerb.renderer, *Markerb.processing_options).render(begin;#{compiled_source};end)"
+ "Redcarpet::Markdown.new(Markerb.renderer, Markerb.processing_options).render(begin;#{compiled_source};end)"
else
compiled_source
end

0 comments on commit a5a2e1f

Please sign in to comment.