aboutsummaryrefslogtreecommitdiff
path: root/plugins/code_block.rb
diff options
context:
space:
mode:
authorBrandon Mathis <brandon@imathis.com>2011-08-21 10:31:14 -0400
committerBrandon Mathis <brandon@imathis.com>2011-08-21 10:31:58 -0400
commit089af26b02dbdce0c960aa544bd8b803d69d4e5f (patch)
tree98d2a7686acdb603b710a18d2b04483357c8bfc5 /plugins/code_block.rb
parent83d87f98cc22dd00bc1ececcb3022ae9ccb964cb (diff)
downloadmy_new_personal_website-089af26b02dbdce0c960aa544bd8b803d69d4e5f.tar.xz
my_new_personal_website-089af26b02dbdce0c960aa544bd8b803d69d4e5f.zip
improved lang:language for codeblock and include code. It no longer strips out surrounding whitespace.
Diffstat (limited to 'plugins/code_block.rb')
-rw-r--r--plugins/code_block.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/code_block.rb b/plugins/code_block.rb
index 4d7ca6bb..9c971bf5 100644
--- a/plugins/code_block.rb
+++ b/plugins/code_block.rb
@@ -55,9 +55,9 @@ module Jekyll
@caption = nil
@filetype = nil
@highlight = true
- if markup =~ /\s+lang:(\w+)/i
+ if markup =~ /\s*lang:(\w+)/i
@filetype = $1
- markup = markup.sub(/\s+lang:\w+\s*/i,'')
+ markup = markup.sub(/lang:\w+/i,'')
end
if markup =~ CaptionUrlTitle
@file = $1