Merge branch 'master' into 2.1

Conflicts:
	plugins/code_block.rb
	plugins/pullquote.rb
This commit is contained in:
Brandon Mathis 2012-06-03 09:52:10 -05:00
commit d4649f7f8f

View File

@ -33,9 +33,7 @@ module Jekyll
def render(context) def render(context)
output = super output = super
if output =~ /\{"\s*(.+?)\s*"\}/m if output =~ /\{"\s*(.+?)\s*"\}/m
#@quote = $1
@quote = RubyPants.new($1).to_html @quote = RubyPants.new($1).to_html
#@quote = CGI.escape($1)
"<span class='pullquote-#{@align}' data-pullquote='#{@quote}'>#{output.gsub(/\{"\s*|\s*"\}/, '')}</span>" "<span class='pullquote-#{@align}' data-pullquote='#{@quote}'>#{output.gsub(/\{"\s*|\s*"\}/, '')}</span>"
else else
return "Surround your pullquote like this {\" text to be quoted \"}" return "Surround your pullquote like this {\" text to be quoted \"}"