Anchors to headings do not always work

I have been wondering why this link does not take you through to the anchor. It’s working if the heading is not part of an enumeration:

But it fails for these and you end up at the top of the topic:

However, I cannot reproduce this in a new thread. Maybe you just need to rebake that five year old post.

I can repro this on a new topic, it seems that headings that start with numbers aren’t working for some reason. They work if you manually add the id to the URL while on the same page, but do not work when linked from elsewhere.

3 Likes

Headings that start with a digit are assigned IDs that start with a digit and those are invalid. I merged a PR to fix this problem:

3 Likes