|
@ -46,7 +46,7 @@ module Jekyll |
|
|
end |
|
|
end |
|
|
|
|
|
|
|
|
def render(context) |
|
|
def render(context) |
|
|
quote = paragraphize(super.map(&:strip).join) |
|
|
quote = paragraphize(super) |
|
|
author = "<strong>#{@by.strip}</strong>" if @by |
|
|
author = "<strong>#{@by.strip}</strong>" if @by |
|
|
if @source |
|
|
if @source |
|
|
url = @source.match(/https?:\/\/(.+)/)[1].split('/') |
|
|
url = @source.match(/https?:\/\/(.+)/)[1].split('/') |
|
@ -75,7 +75,7 @@ module Jekyll |
|
|
end |
|
|
end |
|
|
|
|
|
|
|
|
def paragraphize(input) |
|
|
def paragraphize(input) |
|
|
"<p>#{input.gsub(/\n\n/, '</p><p>').gsub(/\n/, '<br/>')}</p>" |
|
|
"<p>#{input.lstrip.rstrip.gsub(/\n\n/, '</p><p>').gsub(/\n/, '<br/>')}</p>" |
|
|
end |
|
|
end |
|
|
end |
|
|
end |
|
|
end |
|
|
end |
|
|