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

main
Alexandre Perrin 12 years ago
parent e83dfccc4f
commit fe28c0b518

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

Loading…
Cancel
Save