link soup
John Gruber
gruber at fedora.net
Tue Aug 16 18:56:40 EDT 2005
Michel Fortin <michel.fortin at michelf.com> wrote on 08/16/05 at 5:27 pm:
> Feel free to put the `<sup>` tag inside the link if you prefer (but
> in that case you must escape the "Bush & Kerry 2004" opening square
> bracket).
Why would he need to escape the opening square bracket?
A reference [Bush & Kerry 2004][<sup id="A1">1<sup id="A1">](#1)x.
Turns into:
<p>A reference [Bush & Kerry 2004]<a href="#1"><sup id="A1">1<sup
id="A1"></a>x.</p>
And in any case, you can always just use two spaces between bracketed text to be clear:
[this is text in brackets] [foo](/foo/)
[this is a link to foo] [foo](/foo/)
[foo]: http://foo.com/
Turns into:
<p>[this is text in brackets] <a href="/foo/">foo</a></p>
<p><a href="http://foo.com/">this is a link to foo</a>(/foo/)</p>
-J.G.
More information about the Markdown-Discuss
mailing list