Generate useful heading ids.