aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugins/octopress_filters.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/octopress_filters.rb b/plugins/octopress_filters.rb
index e85466e3..92622b38 100644
--- a/plugins/octopress_filters.rb
+++ b/plugins/octopress_filters.rb
@@ -28,7 +28,7 @@ module OctopressFilters
def backtick_codeblock(input)
input.gsub /<p>`{3}\s(\w+)<\/p>.+<pre><code>(.+)<\/code><\/pre>.+`{3}<\/p>/m do
lang = $1
- str = $2.gsub(/^\s{4}/, '').gsub('&lt;','<').gsub('&gt;','>')
+ str = $2.gsub('&lt;','<').gsub('&gt;','>')
highlight(str, lang)
end
end
@@ -96,3 +96,4 @@ module OctopressFilters
end
end
Liquid::Template.register_filter OctopressFilters
+