added yml alias for yaml code highlighting
This commit is contained in:
parent
08dc63a95e
commit
7b52fb492e
2 changed files with 2 additions and 0 deletions
|
|
@ -79,6 +79,7 @@ module Jekyll
|
|||
if @filetype
|
||||
@filetype = 'objc' if @filetype == 'm'
|
||||
@filetype = 'perl' if @filetype == 'pl'
|
||||
@filetype = 'yaml' if @filetype == 'yml'
|
||||
source += " #{highlight(code, @filetype)}</figure></div>"
|
||||
else
|
||||
source += "<pre><code>" + code.lstrip.rstrip.gsub(/</,'<') + "</code></pre></figure></div>"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue