This commit is contained in:
bootstraponline
2012-10-27 17:58:14 -06:00
parent 2c57915781
commit fa16c8960c
2 changed files with 16 additions and 2 deletions
+4
View File
@@ -81,6 +81,10 @@ module Gollum
data.gsub!(/<p><\/p>/) do
''
end
# fix 4 space indented code blocks
data.gsub!(/<pre>\s*<code>(.+)<\/code>\s*<\/pre>/m) do
"<pre><code>#{$1}</code></pre>"
end
data
end