improved lang:language for codeblock and include code. It no longer strips out surrounding whitespace.

This commit is contained in:
Brandon Mathis 2011-08-21 10:31:14 -04:00
parent 83d87f98cc
commit 089af26b02
2 changed files with 4 additions and 4 deletions

View file

@ -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