Skip to content
Browse files

Output html safe so can use in partials w/o raw.

  • Loading branch information...
1 parent 85a74d7 commit e378fcf77f639b897ccde0f7712dddecefb72873 @mpetnuch mpetnuch committed with nashby Sep 17, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/markerb.rb
View
2 lib/markerb.rb
@@ -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).html_safe"
else
compiled_source
end

0 comments on commit e378fcf

Please sign in to comment.
Something went wrong with that request. Please try again.