UNPKG

pullquote

Version:

Add pull quotes to your posts

12 lines (11 loc) 378 B
/** * Generates pull quote markup in all scenarios */ (function () { var pullquote = function (buffer) { //Find a pullquote return buffer.replace(/{% ?pullquote ?%}((.|\s)*?){&quot;([^{}\"]*?)&quot;}((.|\s)*?){% ?endpullquote ?%}/g,'<span class="pullquote-right" data-pullquote="$3">$1$3$4</span>'); }; exports.index = pullquote; exports.show = pullquote; }());