Factor section ids into a separate pass (in advance of giving each section an id= based on its heading text rather than its section number, #41).
Docstring.
Add section ids based on section names (#41).