Stream: IG creation
Topic: Internal links in markdwon page
Brian Reinhold (May 14 2019 at 11:23):
I am trying to make a link to a section within a markdown page using Lloyd's framework. There seem to be many options on how to do this in general and they depend upon the markdown engine one is using.
I tried following the markdown anchor standard
## Some header<a name="header"></a>
and linked with
[some text for link](#header)
but nothing happens. Link looks nice and linkable of course but a click does nothing. How is this done?
Thanks
Lloyd McKenzie (May 14 2019 at 14:10):
An example from CRD:
#### Non-PHI Hook Invocation
is pointed to by
The [non-PHI](#non-phi-hook-invocation) interfaces
Brian Reinhold (May 14 2019 at 14:13):
@Lloyd McKenzie
I did try that and got the same 'nothing'. It is possible I had a typo somewhere. I did reduce all to lower case and replaced spaces with dashes. I had colons (:) as well and left them as they were. I understand I should drop periods but maybe colons need to be dropped as well?
Lloyd McKenzie (May 14 2019 at 14:39):
Colons aren't allowed in a local reference. Check the source of the HTML generated from the markdown to find out what the anchor tag it injects is.
Brian Reinhold (May 14 2019 at 14:41):
Colons aren't allowed in a local reference. Check the source of the HTML generated from the markdown to find out what the anchor tag it injects is.
Good idea; I looked at the toc's tables but didn't think to check one with colons - remove colons and I have success!
Last updated: Apr 12 2022 at 19:14 UTC