Correctly render headings on document lists