<script>
document.addEventListener('DOMContentLoaded', addPullQuote);
function addPullQuote() {
var original = document.querySelectorAll('.pullquote-original')[0]; // limit to one pull quote per page
var originalparagraph = original.parentNode;
<!-- set parent to position relative? -->
var pullquote = document.createElement('aside');
pullquote.setAttribute('class', 'pullquote');
pullquote.innerHTML = original.innerHTML;
originalparagraph.parentNode.insertBefore(pullquote, originalparagraph); // instead, insert before second paragraph?
}
</script>
Implement pull quotes for articles