@Mikhail Yes, I am aware of that. I was simply providing a better alternative to using the HTML
You can ignore the below details, might be of interest if interested in Emacs Org mode.
The .md file I linked above, though, is autogenerated using ox-hugo (Org, Emacs). I prefer to auto-insert the anchor specifiers even though Hugo auto-generates them, to implement cross-linking features in ox-hugo… like you see the same anchor being used in the auto-generated Markdown TOC (I know that Hugo also auto-generates, but there’s a good reason for this approach too), heading anchors, and then anchor references.
Here’s the Org source that generated that Markdown:
*** Link to headings by name :toc:headings:export_option:
:EXPORT_OPTIONS: num:t toc:t
**** Alpha 101
- Link (with description) to a heading with section number: [[* Beta 102][Link to
/Beta 102/ heading]]
- Link (no description) to a heading without section number: [[* Zeta 103]].
The space after that =*= in the link is optional.. so this also
works: [[*Zeta 103]].
**** Beta 102
- Link (with description) to a heading without section number:
[[* Alpha 101][Link to /Alpha 101/ heading]]
***** Gamma 102.1
****** Delta 102.1.1
****** Epsilon 102.1.2
**** Zeta 103
***** Links (no descriptions) to headings with section numbers
- Section [[* Gamma 102.1]]
- Section [[* Delta 102.1.1]]
- Section [[* Epsilon 102.1.2]]
@carlcaulkett Thanks. Glad I could help.