mirror of
https://github.com/WatchOutNewsAgency/wona.github.com.git
synced 2026-01-01 01:16:26 +00:00
improved lang:language for codeblock and include code. It no longer strips out surrounding whitespace.
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user