Fix codeblock rendering with HAML when there is a filetype defined.

This commit is contained in:
Alexandre Perrin 2013-05-11 16:48:36 +03:00
parent e83dfccc4f
commit fe28c0b518
1 changed files with 1 additions and 1 deletions

View File

@ -79,7 +79,7 @@ module Jekyll
source = "<figure class='code'>"
source += @caption if @caption
if @filetype
source += " #{highlight(code, @filetype)}</figure>"
source += "#{highlight(code, @filetype)}</figure>"
else
source += "#{tableize_code(code.lstrip.rstrip.gsub(/</,'&lt;'))}</figure>"
end