Obsidian already has a syntax to link to headings in a file, and embed headings in a file. This request is to allow that to extend to arbitrary elements with HTML IDs via the same syntax - [[file#anchor]]. So, for example, a div with the ID “test” could be referenced via [[file#test]].
Use case - plugins that attempt to implement block referencing, e.g. this idea.
Only part for span-elements remains relevant for reuse.
Part for block elements, which uses metadata before block would be redundant with current Obsidian syntax (id after block) so I proposed modified version instead.
IMHO, this should not be archived yet because now it is possible to address only blocks, not any elements as the title requests. (Clicking on link [a](b#c) does not scroll to anchor with given id=“c”)
If there is a reason for archiving, then I would be interested to hear it.
Currently it is impossible to address links, spans, …
It could be done in following ways:
option:
specifying given element directly in html syntax together with id attribute. This would loose all benefits of markdown.
option:
syntax used in other software/formats mentioned in my previous post, i.e. metadata in curly brackets affixed to the element.