mirror of
https://github.com/WatchOutNewsAgency/wona.github.com.git
synced 2026-01-01 01:16:26 +00:00
updated plugins to work with latest version of Liquid
This commit is contained in:
@ -46,7 +46,7 @@ module Jekyll
|
||||
end
|
||||
|
||||
def render(context)
|
||||
quote = paragraphize(super.map(&:strip).join)
|
||||
quote = paragraphize(super)
|
||||
author = "<strong>#{@by.strip}</strong>" if @by
|
||||
if @source
|
||||
url = @source.match(/https?:\/\/(.+)/)[1].split('/')
|
||||
@ -75,7 +75,7 @@ module Jekyll
|
||||
end
|
||||
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user