On 5/11/06, Mark Eli Kalderon m.kalderon@ucl.ac.uk wrote:
Thanks Dr. Drang, but are you sure that MM footnotes can't take a single digit after the caret? That hasn't been my experience.
When the input is
---------------------------------------
Let's[^1] try[^2].
[^1]: First footnote.
[^2]: Second footnote.
---------------------------------------
the output is
---------------------------------------
<p>Let's<a href="#" name="f" class="footnote">1</a> try<a href="#" name="f" class="footnote">2</a>.</p>
<div class="footnotes"> <hr /> <p>Footnotes:</p>
<div id=""><p><a href="#f" class="reversefootnote">1.</a> Second footnote.</p></div>
<div id=""><p><a href="#f" class="reversefootnote">2.</a> Second footnote.</p></div>
</div>
---------------------------------------
which is clearly wrong. I used a freshly-downloaded MultiMarkdown.pl. If I change the input to
---------------------------------------
Let's[^fn1] try[^fn2].
[^fn1]: First footnote.
[^fn2]: Second footnote.
---------------------------------------
the output is
---------------------------------------
<p>Let's<a href="#fn1" name="ffn1" class="footnote">1</a> try<a href="#fn2" name="ffn2" class="footnote">2</a>.</p>
<div class="footnotes"> <hr /> <p>Footnotes:</p>
<div id="fn1"><p><a href="#ffn1" class="reversefootnote">1.</a> First footnote.</p></div>
<div id="fn2"><p><a href="#ffn2" class="reversefootnote">2.</a> Second footnote.</p></div>
</div>
---------------------------------------
which is correct (although I would prefer there be no "Footnotes" paragraph). As I said in the post, I haven't looked at the code to see why MM fails to format single-digit markers when there are multiple footnotes--it just so happened that my first example was done that way. It may fail under other legitimate input, too.
If I get a chance tonight, I'll look at the MM code and try to figure it out.