Allow github gists
parent
4ffa5cf9fa
commit
b8fc627aff
|
@ -27,6 +27,9 @@ module Merb
|
|||
# i need pre/code block together... because i code :)
|
||||
desc.gsub!("<pre><code>", "<pre><code>")
|
||||
desc.gsub!("</code></pre>", "</code></pre>")
|
||||
# allow github gists and whatever else in javascript chunks
|
||||
desc.gsub!("<script", "<script")
|
||||
desc.gsub!("></script>", "></script>")
|
||||
rc = RedCloth.new(desc)
|
||||
rc.no_span_caps = true
|
||||
rc.filter_styles = true
|
||||
|
|
Reference in New Issue