Merge pull request #1254 from kAworu/master

make codeblock play nice with HAML
This commit is contained in:
Brandon Mathis 2013-10-12 14:07:25 -07:00
commit 050c393a4e

View File

@ -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