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