Perhaps I misunderstood the original question, but on the chance I was correct….


I think the problem is not creating the link [link text](#anchor) which is 
standard Markdown, but rather having something to link *to*.


For example:

        # Heading #

        This will create an active link to the [heading](#heading).


If this is what you meant, then this was something I added to MultiMarkdown and 
I imagine other implementations have also done similar things (and GFM is one 
of them).  I called them "cross-references", but I'm sure others called them 
different things as well.  In standard Markdown, the above link would not work, 
as there would not be an anchor target named "#heading".

<http://fletcher.github.io/MultiMarkdown-4/cross-references.html>


If I'm wrong, and David correctly understood your question then just ignore 
me….  ;)


Fletcher



-- 
Fletcher T. Penney
fletc...@fletcherpenney.net 

On Jul 8, 2015, at 5:49 PM, David Chambers <d...@davidchambers.me> wrote:

> Yes. This is a standard part of Markdown.
> 
> On 8 July 2015 at 14:21, Alice Williams <awilli...@machinezone.com> wrote:
> Is there a way to get the same HTML anchor links like this:
> 
> <a href = "#anchorname">Link text</a>
> 
> <a name="anchorname"></a>
> 
> the gitlab version of markdown supports these links this way:
> 
> [link text](#anchor)
> 
> Heading <a name="anchor"></a>
> 
> but this does not work with fireball version of markdown.
> 
> thanks for any suggestions!
> Alice
> 
> _______________________________________________
> Markdown-Discuss mailing list
> Markdown-Discuss@six.pairlist.net
> https://pairlist6.pair.net/mailman/listinfo/markdown-discuss
> 
> 
> _______________________________________________
> Markdown-Discuss mailing list
> Markdown-Discuss@six.pairlist.net
> https://pairlist6.pair.net/mailman/listinfo/markdown-discuss

_______________________________________________
Markdown-Discuss mailing list
Markdown-Discuss@six.pairlist.net
https://pairlist6.pair.net/mailman/listinfo/markdown-discuss

Reply via email to