Enable automatic header id generation for specialist documents

Specialist documents include an context menu which allows navigation
within the document on a single page. This relies on the headings having
id attributes.