mike watkins dot ca : September 1 2005 Archives

September 01 2005

Python Markdown with Footnotes

Cool: python-markdown, which I last looked at quite a few versions ago, works a charm and now includes footnote support, the one major item I missed in Textile.

Although it still does not support links in header elements; perl-markdown does, i.e.:


# [Markdown][5]  
[5]: http://foo.com/




… should both render h1 elements containing links. Yet footnote support is really what I needed in order to switch for a project I’m about to move to release on; now if only the @attribute= idea noted on ogbuji.net, or some such unobtrusive method of getting class, id or style data shoved into an element, life would be truly grand.

This is a test paragraph with a footnote. 1

Multiple paragraphs can be included in the note text by indenting them, just as with multi-paragraph list item. However, unlike list items, even single-paragraph footnotes will be wrapped in <p> tags. Blah blah blah.

Lichtblau said problems could linger through the end of the year. "Hopefully, three months from now situation will be resolved. I don't think anyone knows how much damage there is to refineries."

You can say that again!

(view source to see the footnote handling.