mirror of
https://github.com/WatchOutNewsAgency/wona.github.com.git
synced 2026-01-01 01:16:26 +00:00
added yml alias for yaml code highlighting
This commit is contained in:
@ -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>"
|
||||
|
||||
Reference in New Issue
Block a user