footnote:id, colons and jquery

Fletcher Penney fletcher at
Mon Feb 4 21:09:25 EST 2013

Discovered something similar when using MultiMarkdown to create ePubs --- the colon in the footnotes isn't valid (though seems to work in most readers). Hyphens appear to be valid characters, in that context at least.

Any reason not to switch to hyphens instead of colons? Or could even remove altogether I suppose. I would be interested in choosing something more compatible with other implementations rather than everyone going their own route.


On Jan 23, 2013, at 2:29 PM, Waylan Limberg <waylan at> wrote:

> I just received a [bug report] for Python-Markdown complaining that

> colons are used in the ids of footnotes. For reference, we [output]

> the same format at PHP Markdown Extra. The general complaint is that

> the colon in the id attribute (`id="fnref:1"`) causes jquery to choke

> when referencing that id from javascript because jquery uses colons to

> indicate pseudo elements (as does CSS). As expected, jquery supports

> escaping the colon - which eliminates the problem - except that

> apparently the escaping causes a performance hit.


> My initial reaction is to say that this is jquery's problem, but what

> do you think? Should the various implementations that support

> footnotes all change to not use colons? I couldn't help but note that

> Gruber's unreleased implementation (what he uses on

> appears to use dashes instead.


> Any thoughts?


> [bug report]:

> [output]:


> --

> ----

> \X/ /-\ `/ |_ /-\ |\|

> Waylan Limberg

> _______________________________________________

> Markdown-Discuss mailing list

> Markdown-Discuss at


Fletcher T. Penney
fletcher at

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4899 bytes
Desc: not available
Url : <>

More information about the Markdown-Discuss mailing list