Register heading ids for linking