From e53b26ad3042d5657c869ab1961c35e7b716e4e9 Mon Sep 17 00:00:00 2001 From: Brandon Mathis Date: Thu, 24 May 2012 10:28:32 -0500 Subject: updated plugins to work with latest version of Liquid --- plugins/pullquote.rb | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'plugins/pullquote.rb') diff --git a/plugins/pullquote.rb b/plugins/pullquote.rb index 2b59bad6..3c65e66e 100644 --- a/plugins/pullquote.rb +++ b/plugins/pullquote.rb @@ -32,11 +32,9 @@ module Jekyll def render(context) output = super - if output.join =~ /\{"\s*(.+)\s*"\}/ - #@quote = $1 + if output =~ /\{"\s*(.+?)\s*"\}/m @quote = RubyPants.new($1).to_html - #@quote = CGI.escape($1) - "#{output.join.gsub(/\{"\s*|\s*"\}/, '')}" + "#{output.gsub(/\{"\s*|\s*"\}/, '')}" else return "Surround your pullquote like this {\" text to be quoted \"}" end -- cgit v1.2.1