Multi-paragraph footnotes appear broken

I've added a test case below that illustrates the problem, and you can see http://michelf.ca/projects/php-markdown/extra/#footnotes for the documented-but-unsupported behavior. Instead, Discount is currently adding later paragraphs at the end of the main body before the footnotes begin.

I started to look at https://github.com/Orc/discount/blob/master/markdown.c#L996-L1000, but was unable to make much progress. It's also possible there's a mistake in my Markdown, or I've misunderstood the documented behavior. Thanks!