From b8fc627aff5ddafd41f7ad586e0dfd16dc2ce8fc Mon Sep 17 00:00:00 2001 From: Andrew Coleman Date: Wed, 1 Apr 2009 23:23:04 -0500 Subject: [PATCH] Allow github gists --- app/helpers/global_helpers.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/helpers/global_helpers.rb b/app/helpers/global_helpers.rb index 4cf8700..8567f3a 100644 --- a/app/helpers/global_helpers.rb +++ b/app/helpers/global_helpers.rb @@ -27,6 +27,9 @@ module Merb # i need pre/code block together... because i code :) desc.gsub!("<pre><code>", "
")
         desc.gsub!("</code></pre>", "
") + # allow github gists and whatever else in javascript chunks + desc.gsub!("<script", "") rc = RedCloth.new(desc) rc.no_span_caps = true rc.filter_styles = true