Most are certainly aware of this setting, but it has a major backdraw: If one has a heading starting wit a digit, the generated ID will itself start with one. While this is perfectly valid on the HTML side, it is quite an inconvenience when working with CSS selectors. Those can work, but need to be escaped, is there a way to prepend an ID with some default, like id_?
Altering the id attribute in a heading render hook will break tables of content (e.g., Page.TableOfContents). See Issue 8383, which I suspect will not or cannot be addressed ().
Instead, use a Markdown attribute to override the id as needed. For example: