vmg/sundown — pull request #141 by bdolman (2012-10-31 00:36:24+00:00)
Title: Add MultiMarkdown footnotes extension

The footnote syntax and output basically follows what's outlined here: http://michelf.ca/projects/php-markdown/extra/#footnotes

The parsing of the footnote definition is very similar to a list item, per the direction in the footnotes reference above.

New extension flag called MKDEXT_FOOTNOTES.

Three new rendering callbacks:

* footnote_ref - The inline reference
* footnote_def - The definition of an individual footnote at the end of the document
* footnotes - The div, hr and list that wraps all of the footnote definitions at the end

The rest should be pretty self explanatory. I tried to follow the conventions in the current library. My buffer usage deserves some scrutiny to make sure I'm using the proper initial sizes.

I've done some basic testing, but nothing extensive. Would love to get some other people trying it and looking at it to see if I've missed something.