mirror of
https://github.com/moparisthebest/android.moparisthebest.org
synced 2024-11-16 06:05:00 -05:00
Merge branch 'master' into 2.1
Conflicts: plugins/code_block.rb plugins/pullquote.rb
This commit is contained in:
commit
d4649f7f8f
@ -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 \"}"
|
||||||
|
Loading…
Reference in New Issue
Block a user