diff options
author | Brandon Mathis <brandon@imathis.com> | 2012-05-24 10:28:32 -0500 |
---|---|---|
committer | Brandon Mathis <brandon@imathis.com> | 2012-05-24 10:28:32 -0500 |
commit | e53b26ad3042d5657c869ab1961c35e7b716e4e9 (patch) | |
tree | 0aa61464828020e72a354cfd2a2c31e857dbe9d9 /plugins/pullquote.rb | |
parent | 2a55f35211c3e8504a0cfa52d2f68933e8424947 (diff) | |
download | my_new_personal_website-e53b26ad3042d5657c869ab1961c35e7b716e4e9.tar.xz my_new_personal_website-e53b26ad3042d5657c869ab1961c35e7b716e4e9.zip |
updated plugins to work with latest version of Liquid
Diffstat (limited to 'plugins/pullquote.rb')
-rw-r--r-- | plugins/pullquote.rb | 6 |
1 files changed, 2 insertions, 4 deletions
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) - "<span class='pullquote-#{@align}' data-pullquote='#{@quote}'>#{output.join.gsub(/\{"\s*|\s*"\}/, '')}</span>" + "<span class='pullquote-#{@align}' data-pullquote='#{@quote}'>#{output.gsub(/\{"\s*|\s*"\}/, '')}</span>" else return "Surround your pullquote like this {\" text to be quoted \"}" end |