diff options
author | Brandon Mathis <brandon@imathis.com> | 2011-07-27 18:32:06 -0400 |
---|---|---|
committer | Brandon Mathis <brandon@imathis.com> | 2011-07-27 18:34:58 -0400 |
commit | 4a2254665cadf5d936071e37c8c561456ce1d449 (patch) | |
tree | 2a4eb7b4404dd74502bb49fd78f47e651e53584f /plugins | |
parent | 0911eabb9b5a2e4f351e0d0f98517783733fe5c0 (diff) | |
download | my_new_personal_website-4a2254665cadf5d936071e37c8c561456ce1d449.tar.xz my_new_personal_website-4a2254665cadf5d936071e37c8c561456ce1d449.zip |
fixed bug where multiple github style codeblcoks were getting eaten
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/octopress_filters.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/octopress_filters.rb b/plugins/octopress_filters.rb index 92622b38..7d73bdec 100644 --- a/plugins/octopress_filters.rb +++ b/plugins/octopress_filters.rb @@ -26,7 +26,7 @@ module OctopressFilters # code snippet # ``` def backtick_codeblock(input) - input.gsub /<p>`{3}\s(\w+)<\/p>.+<pre><code>(.+)<\/code><\/pre>.+`{3}<\/p>/m do + input.gsub /<p>`{3}\s(\w+)<\/p>\n\n<pre><code>([^<]+)<\/code><\/pre>\n\n<p>`{3}<\/p>/m do lang = $1 str = $2.gsub('<','<').gsub('>','>') highlight(str, lang) |