In a large article, it's convenient if you can link to subheadings within the article. Wikipedia does this automatically and creates an index (see example) but it would also be nice if it's possible to add a name or id manually.

I tried to do so within a Bard fieldtype by switching to HTML mode, and it saved the ID's just fine. Only when I re-edited the document, all ID's were gone.

What would you consider to be the best way to create these kind of anchors (name or id) within a page so that it supports being linked to?