Re-displaying the current heading after a page break
问题 I'm creating a document with WeasyPrint. I have sections that have names, some of which might span across multiple pages. When a section is too long, a page break occurs. What I am trying to do is to re-display the current section's name, ideally with the same formatting. The following MWE shows how the section title is not displayed after a page break: <html> <body> <h1>First section</h1> <p>Lorem ipsum...</p> <p>Lorem ipsum...</p> <p>Lorem ipsum...</p> <p>Lorem ipsum...</p> <p style="break