code_block and inlcude_code no longer needlessly render through the Liquid template parser

This commit is contained in:
Brandon Mathis 2011-08-01 16:23:17 -04:00
parent ff1dba19f2
commit 6009daa8a2
2 changed files with 0 additions and 8 deletions

View File

@ -84,10 +84,6 @@ module Jekyll
source += "<pre><code>" + code.lstrip.rstrip.gsub(/</,'&lt;') + "</code></pre></figure></div>"
end
source = source + context['pygments_suffix'] if context['pygments_suffix']
partial = Liquid::Template.parse(source)
context.stack do
partial.render(context)
end
end
end
end

View File

@ -59,10 +59,6 @@ module Jekyll
url = "#{context.registers[:site].config['url']}/#{code_dir}/#{@file}"
source = "<div><figure role=code><figcaption><span>#{title}</span> <a href='#{url}'>download</a></figcaption>\n"
source += " #{highlight(code, @filetype)}</figure></div>"
partial = Liquid::Template.parse(source)
context.stack do
partial.render(context)
end
end
end
end