Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

…ray.
  • Loading branch information...
commit a5a2e1fbe10ae135f816e0fbf3ec8e0a6db177d7 1 parent 6e55c4e
@colszowka colszowka authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/markerb.rb
View
4 lib/markerb.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.