Prior to this change, it was not possible to link to headings. For example, this link wasn't functional: functions/lang/#langformatnumber
Fixes #8820