Permalink
Browse files

Bundler

  • Loading branch information...
ryanstout committed Apr 25, 2011
1 parent 5da2bc3 commit e3ac54c810ca342432ba31ce926bf1c635500c15
Showing with 5 additions and 1 deletion.
  1. +5 −1 lib/blog_kit_model_helper.rb
@@ -36,7 +36,11 @@ def code_highlight_and_markdown(text, markdown_options = {})
end
else
if defined?(BlueCloth)
- BlueCloth.new(piece, markdown_options).to_html
+ begin
+ BlueCloth.new(piece, markdown_options).to_html
+ rescue Exception => e
+ '[Parsing Error]'
+ end
else
ERB::Util.html_escape(piece)
end

0 comments on commit e3ac54c

Please sign in to comment.