From 6f646e7290114721a1b4d6b49f25496ad8d7ca7e Mon Sep 17 00:00:00 2001 From: Brandon Mathis Date: Tue, 19 Jul 2011 18:00:56 -0400 Subject: added
wrappers to code blocks because rdiscount stupidly wraps
tags with paragraphs. Grr. --- plugins/include_code.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/include_code.rb') diff --git a/plugins/include_code.rb b/plugins/include_code.rb index b063f14f..72a74ac7 100644 --- a/plugins/include_code.rb +++ b/plugins/include_code.rb @@ -40,8 +40,8 @@ module Jekyll code = file.read file_type = file.extname url = "#{context.registers[:site].config['url']}/#{code_dir}/#{@file}" - source = "
#{file.basename} download
\n" - source += "{% highlight #{file_type} %}\n" + code + "\n{% endhighlight %}
" + source = "
#{file.basename} download
\n" + source += "{% highlight #{file_type} %}\n" + code + "\n{% endhighlight %}
" partial = Liquid::Template.parse(source) context.stack do partial.render(context) -- cgit v1.2.1