I have a document in Libre Office Writer that has around a hundred endnotes -- or technically, footnotes, with the "End of document" position setting (*). These notes begin at the top of a new page near the end of the document, and run for several pages, as desired. But I'd also like a heading/title on that page, e.g., "Endnotes" to set off that part of the document. I've played around with line breaks, page breaks, and trying to add a new section, all to no avail.
How can I add a header to the starting page of the footnotes/endnotes part of my Libre Office Writer document?
(*) The workflow I'm setting up has source text in Markdown files, converted to Libre Office via Pandoc. While endnotes are what I really want, extended Markdown doesn't have that, supporting footnotes only (as far as I'm aware).