Render shortcodes before paginating content

This way if a shortcode expands over two pages, it can still paginate correctly.