# <span data-pullquote="pullquotes are merely visual in presentation and should not appear twice in the text.">
# When writing longform posts, I find it helpful to include pullquotes, which help those scanning a post discern whether or not a post is helpful.
# It is important to note, pullquotes are merely visual in presentation and should not appear twice in the text. This is why a CSS only approach # for styling pullquotes is prefered.
# It is important to note, pullquotes are merely visual in presentation and should not appear twice in the text. This is why a CSS only approach
# for styling pullquotes is prefered.
# </span>
# </p>
#
# Strand's modification adds the ability to call this plugin with {% pullquote left %} which duplicates the current behavior of the pullquote plugin, with a left float and appropriate margins.
# Note: this version of the plugin now creates pullquotes with the class of pullquote-right by default
# {% pullquote left %} will create a left-aligned pullquote instead.
#
# Note: this plugin now creates pullquotes with the class of pullquote-right by default
moduleJekyll
classPullquoteTag<Liquid::Block
definitialize(tag_name,markup,tokens)
markup=~/left/i?@align="left":@align="right"
@align=(markup=~/left/i)?"left":"right"
super
end
@ -32,7 +34,7 @@ module Jekyll
output=super
ifoutput.join=~/\{"\s*(.+)\s*"\}/
@quote=$1
"<span class='pullquote-#{@align}' data-pullquote='#{@quote}'>#{output.join.gsub(/\{"\s*|\s*"\}/,'')}</span>"# TODO Determine how to makethis span have a left or right flag.