|
|
@ -77,9 +77,6 @@ module Jekyll
|
|
|
|
source += @caption if @caption
|
|
|
|
source += @caption if @caption
|
|
|
|
source = context['pygments_prefix'] + source if context['pygments_prefix']
|
|
|
|
source = context['pygments_prefix'] + source if context['pygments_prefix']
|
|
|
|
if @filetype
|
|
|
|
if @filetype
|
|
|
|
@filetype = 'objc' if @filetype == 'm'
|
|
|
|
|
|
|
|
@filetype = 'perl' if @filetype == 'pl'
|
|
|
|
|
|
|
|
@filetype = 'yaml' if @filetype == 'yml'
|
|
|
|
|
|
|
|
source += " #{highlight(code, @filetype)}</figure></div>"
|
|
|
|
source += " #{highlight(code, @filetype)}</figure></div>"
|
|
|
|
else
|
|
|
|
else
|
|
|
|
source += "#{tableize_code(code.lstrip.rstrip.gsub(/</,'<'))}</figure></div>"
|
|
|
|
source += "#{tableize_code(code.lstrip.rstrip.gsub(/</,'<'))}</figure></div>"
|
|
|
|