diff options
author | Brandon Mathis <brandon@imathis.com> | 2011-07-26 23:56:14 -0400 |
---|---|---|
committer | Brandon Mathis <brandon@imathis.com> | 2011-07-26 23:56:14 -0400 |
commit | d0f56ef1ca9c62211c0a32db4b0895f0f7186607 (patch) | |
tree | 8e166c57108f378ed027a0b5b83f4124dcb52fcc /plugins | |
parent | 6e2beaa969d6dd68652fa2cd79ad4eb6eeeaae49 (diff) | |
download | my_new_personal_website-d0f56ef1ca9c62211c0a32db4b0895f0f7186607.tar.xz my_new_personal_website-d0f56ef1ca9c62211c0a32db4b0895f0f7186607.zip |
fixed bug in backtick_codeblock where indentations were being unintentionally removed
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/octopress_filters.rb | 3 |
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('<','<').gsub('>','>') + str = $2.gsub('<','<').gsub('>','>') highlight(str, lang) end end @@ -96,3 +96,4 @@ module OctopressFilters end end Liquid::Template.register_filter OctopressFilters + |