diff --git a/plugins/code_block.rb b/plugins/code_block.rb index d204e1b..8c308f2 100644 --- a/plugins/code_block.rb +++ b/plugins/code_block.rb @@ -67,7 +67,7 @@ module Jekyll if @filetype source += "{% highlight #{@filetype} %}\n" + code + "\n{% endhighlight %}" else - source += "
" + code.gsub!(/
" + source += "
" + code.lstrip.rstrip.gsub(/
" end partial = Liquid::Template.parse(source) context.stack do