diff --git a/plugins/blockquote.rb b/plugins/blockquote.rb
index 7fb8c26..62e7d14 100644
--- a/plugins/blockquote.rb
+++ b/plugins/blockquote.rb
@@ -46,7 +46,7 @@ module Jekyll
end
def render(context)
- quote = paragraphize(super.map(&:strip).join)
+ quote = paragraphize(super)
author = "#{@by.strip}" if @by
if @source
url = @source.match(/https?:\/\/(.+)/)[1].split('/')
@@ -75,7 +75,7 @@ module Jekyll
end
def paragraphize(input)
- "
#{input.gsub(/\n\n/, '
').gsub(/\n/, '
')}
"
+ "#{input.lstrip.rstrip.gsub(/\n\n/, '
').gsub(/\n/, '
')}
"
end
end
end
diff --git a/plugins/code_block.rb b/plugins/code_block.rb
index e175d44..44e3494 100644
--- a/plugins/code_block.rb
+++ b/plugins/code_block.rb
@@ -79,7 +79,7 @@ module Jekyll
def render(context)
output = super
- code = super.join
+ code = super
source = "