does fireball markdown support anchor links?
David Chambers
dc at davidchambers.me
Wed Jul 8 19:17:58 EDT 2015
You're quite right, Fletcher. Thank you for correcting me. :)
One thing to keep in mind, Alice, is that Markdown is a superset of HTML,
so one is free to write HTML in cases where there is no Markdown-specific
equivalent. Using <a name="anchorname"></a> is an option, though not a
pretty one.
On 8 July 2015 at 15:15, Fletcher T. Penney <fletcher at fletcherpenney.net>
wrote:
> 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
> fletcher at fletcherpenney.net
>
> On Jul 8, 2015, at 5:49 PM, David Chambers <dc at davidchambers.me> wrote:
>
> Yes. This is a standard part of Markdown.
>
> On 8 July 2015 at 14:21, Alice Williams <awilliams at 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 at six.pairlist.net
>> https://pairlist6.pair.net/mailman/listinfo/markdown-discuss
>>
>>
> _______________________________________________
> Markdown-Discuss mailing list
> Markdown-Discuss at six.pairlist.net
> https://pairlist6.pair.net/mailman/listinfo/markdown-discuss
>
>
>
> _______________________________________________
> Markdown-Discuss mailing list
> Markdown-Discuss at six.pairlist.net
> https://pairlist6.pair.net/mailman/listinfo/markdown-discuss
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist6.pair.net/pipermail/markdown-discuss/attachments/20150708/82fc732e/attachment.html>
More information about the Markdown-Discuss
mailing list