Only render last page if there is content.
Do not eat newlines in code blocks.