FIX: Generate valid heading ids (PR #14840)

IDs must start with a letter.

GitHub

This pull request has been mentioned on Discourse Meta. There might be relevant details there: