link soup

Michel Fortin michel.fortin at michelf.com
Tue Aug 16 17:27:26 EDT 2005


Le 16 août 2005 à 13:38, Mark Smith a écrit :


> I'm hoping that my inexperience is the culprit here. Is there

> currently a(n) better/tidier/easier way to do this type of

> thing ?


Well, you could always use inline links like `[text](#1)` for your in-
document references which would look like this:

Markdown, but with PHP Markdown Extra you could do this:

### mySection

A reference [Bush & Kerry 2004]<sup id="A1">[1](#1)</sup>.

___________________

### References:

<a id="1"></a>1. Bush GW, Kerry J. 2004. Bush and Kerry offer their
views on science. Science. Sep 15.[Hubmed Citation][H1]
[&crarr;](#A1)

[H1]: <http://www.hubmed.org/display.cgi?uids=15371599>

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).

* * *

Take note that an id of "1" is invalid according to HTML spec which
must begin by a letter:


> ID and NAME tokens must begin with a letter ([A-Za-z]) and may be

> followed by any number of letters, digits ([0-9]), hyphens ("-"),

> underscores ("_"), colons (":"), and periods (".").


<http://www.w3.org/TR/html401/types.html#h-6.2>


Michel Fortin
michel.fortin at michelf.com
http://www.michelf.com/




More information about the Markdown-Discuss mailing list