Allowing dashes in code names. Closes #1166
This commit is contained in:
parent
7dfba9a26e
commit
3ab22cb820
2 changed files with 4 additions and 4 deletions
|
@ -56,9 +56,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(/lang:\w+/i,'')
|
||||
markup = markup.sub(/\s*lang:([\w-]+)/i,'')
|
||||
end
|
||||
if markup =~ CaptionUrlTitle
|
||||
@file = $1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue