Allow github gists

master
Andrew Coleman 2009-04-01 23:23:04 -05:00
parent 4ffa5cf9fa
commit b8fc627aff
1 changed files with 3 additions and 0 deletions

View File

@ -27,6 +27,9 @@ module Merb
# i need pre/code block together... because i code :)
desc.gsub!("&lt;pre&gt;&lt;code&gt;", "<pre><code>")
desc.gsub!("&lt;/code&gt;&lt;/pre&gt;", "</code></pre>")
# allow github gists and whatever else in javascript chunks
desc.gsub!("&lt;script", "<script")
desc.gsub!("&gt;&lt;/script&gt;", "></script>")
rc = RedCloth.new(desc)
rc.no_span_caps = true
rc.filter_styles = true