Headings in header and footer should not create <section>
Created originally on Bitbucket by fladd (Florian Krause)
When .. Header:: or .. Footer:: are used, and sections are created, which is correct.
However, when inside those a heading is used, it seems that rst2html5 tries to wrap those into a
So, to fix this: when inside a header or footer, headings should not create new .