add 'id' attributes to headers, for linking