Hey all,
Sorry, I spent 30 minutes already trying to make it work, so I figured I’d ask, even though I am sure this topic came up earlier. I just couldn’t find it.
My question is, how do I give a link to an anchor? I assume, the answer would be different in 2 cases:
Case A. the anchor is in a header
Case B. the anchor is elsewhere.
I am currently interested in Case A. I assume, one could approach it by putting the anchor into a separate paragraph, thus making it essentially case B, but I wouldn’t like to have an empty space before of after every heading.
What I tried for the anchor:
# <a name="anchor"></a>My header
# <a id="anchor"></a>My header
# My header ^anchor
^anchor
# My header
# My header
^anchor
# My header {#anchor}
{#anchor}
# My header
# My header
{#anchor}
What I tried for the link:
[link](#anchor)
[link](#^anchor)
[#anchor]
[#^anchor]
[[#anchor]]
[[#^anchor]]
So far, nothing worked.