The topic Add Anchor ID to Text discusses automatically adding anchor link IDs to markdown headers. fyodorovich inquired if this feature is available, as they can see it working in their TOS, but not when trying to create deep links to inline elements.
JammyDodger confirmed that it works and provided an example using <a name="anchor"></a>. They also explained that headers are automatically assigned an anchor ID when using the ### markdown code.
JammyDodger shared their method for generating links and anchors, which involves using the ### markdown code for headers and grabbing the link from the icon that appears. fyodorovich was able to reproduce this method and confirmed it’s working for them.
I can see deep links to Headings working in my TOS. However, when I try to create deep link to inline elements, such as span or anchors, the ID is stripped from the tag, making the link useless.
how are you generating the link and the anchor. I’m trying to follow the usage in the terms of service table of contents. When I save the post and use the dev inspector to look at the code I can see that the tag has persisted but the attributes have been removed.