Description of need: When creating a new journal post on iNaturalist, the HTML parameter “id“ is not supported and is automatically removed. This parameter is very useful to include when linking content inside a journal post or somewhere else on the Internet. Guides have been deprecated since 2019 and won’t be updated further. However, many users instead create journal posts to group information they need to commonly repeat when identifying taxa (field characteristics, literature, observation techniques, etc.).
Feature request details: Add support for the “id“ HTML parameter so it can be used in the<a>tag. This would allow people to create table of contents for long journal posts, as well as identification keys by linking to content inside of the journal post.
if you are trying to do a table of contents and linking to elements by id is not available, then you can still link to named anchor tags.
here’s an example using html:
<a href="#link1">Jump to Link 1</a>
<a name="link1"></a><h1>Header 1<h1>
here’s an example using markdown + html anchor:
[Jump to Link 2](#link2)
# <a name="link2"></a>Header 2
…
i think the primary reason you wouldn’t want to allow users to define id attributes on elements is that you wouldn’t want them to potentially break the page if multiple elements accidentally get assigned the same id.
so if you still want to link by id, a better feature request might be for the system to auto-generate ids for headings. then you can link to headings by those auto-generated ids. the main problem with such an approach is that it may not be obvious to most users how to see what the auto-generated ids are.