From 4a2254665cadf5d936071e37c8c561456ce1d449 Mon Sep 17 00:00:00 2001 From: Brandon Mathis Date: Wed, 27 Jul 2011 18:32:06 -0400 Subject: fixed bug where multiple github style codeblcoks were getting eaten --- plugins/octopress_filters.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins') 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 /

`{3}\s(\w+)<\/p>.+

(.+)<\/code><\/pre>.+`{3}<\/p>/m do
+    input.gsub /

`{3}\s(\w+)<\/p>\n\n

([^<]+)<\/code><\/pre>\n\n

`{3}<\/p>/m do lang = $1 str = $2.gsub('<','<').gsub('>','>') highlight(str, lang) -- cgit v1.2.1