centralized pygments aliases into pygments_code.rb. Added alias for .ru (ruby), which sort of fixes #108
This commit is contained in:
parent
596ec87c37
commit
358d02a4a7
3 changed files with 4 additions and 6 deletions
|
|
@ -77,9 +77,6 @@ module Jekyll
|
|||
source += @caption if @caption
|
||||
source = context['pygments_prefix'] + source if context['pygments_prefix']
|
||||
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 += "#{tableize_code(code.lstrip.rstrip.gsub(/</,'<'))}</figure></div>"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue