PHP Dingus Fix

Adam McMaster adam at moosoft.net
Tue Sep 19 07:05:06 EDT 2006


On Mon, 2006-09-18 at 21:14 -0400, Michel Fortin wrote:

> I just realised I hadn't updated the version of PHP Markdown and

> Extra on the dingus as I pretended I did in my two announcements. It

> is now fixed: PHP Markdown 1.0.2b7 and PHP Markdown Extra 1.1b1 can

> now be tested on the dingus.

>

> <http://www.michelf.com/projects/php-markdown/dingus/>

>

> Sorry for any inconvenience.

>


I've found a footnote-related bug. Take this example:




# Document Title

Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Etiam
ultricies enim id diam. Nullam nec turpis. Praesent enim nibh, posuere
id, vestibulum quis, eleifend eget, erat. Sed tincidunt massa. Phasellus
non odio. Nullam gravida euismod libero. Maecenas quis lectus.
Vestibulum vitae enim. Donec non massa. Nullam faucibus.[^1]

[^1]: This is the first footnote.

## Subheading

Donec porta felis sit amet dui. Sed id mauris aliquam dui vulputate
vulputate.[^2] Ut ac nunc consequat enim iaculis hendrerit.[^3] Nullam
at tellus non purus vehicula vehicula. Etiam dapibus nunc nec dolor.

[^2]: Footnote two.
[^3]: And number three.





And here's how it renders, with the subheading showing up in the
footnotes section at the end:





<h1>Document Title</h1>

<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Etiam
ultricies enim id diam. Nullam nec turpis. Praesent enim nibh, posuere
id, vestibulum quis, eleifend eget, erat. Sed tincidunt massa. Phasellus
non odio. Nullam gravida euismod libero. Maecenas quis lectus.
Vestibulum vitae enim. Donec non massa. Nullam faucibus.<sup
id="fnref:1"><a href="#fn:1" rel="footnote">1</a></sup></p>

<p>Donec porta felis sit amet dui. Sed id mauris aliquam dui vulputate
vulputate.<sup id="fnref:2"><a href="#fn:2" rel="footnote">2</a></sup>
Ut ac nunc consequat enim iaculis hendrerit.<sup id="fnref:3"><a
href="#fn:3" rel="footnote">3</a></sup> Nullam at tellus non purus
vehicula vehicula. Etiam dapibus nunc nec dolor.</p>

<div class="footnotes">
<hr />
<ol>

<li id="fn:1">
<p>This is the first footnote.</p>

<h2>Subheading</h2>

<p><a href="#fnref:1" rev="footnote">&#8617;</a></p>
</li>

<li id="fn:2">
<p>Footnote two. <a href="#fnref:2" rev="footnote">&#8617;</a></p>
</li>

<li id="fn:3">
<p>And number three. <a href="#fnref:3" rev="footnote">&#8617;</a></p>
</li>

</ol>
</div>

--
Adam McMaster <adam at moosoft.net>





More information about the Markdown-Discuss mailing list