diff options
author | Waylan Limberg <waylan@gmail.com> | 2010-08-25 11:06:17 -0400 |
---|---|---|
committer | Waylan Limberg <waylan@gmail.com> | 2010-08-25 11:06:17 -0400 |
commit | 5ee12763465d123a313d43fc0fb497636f727d34 (patch) | |
tree | d758f37eef3fa689cbc3c31af72a0f71bbb7d500 /tests | |
parent | 45e77f48b380c97ff07f050a4a1b9041a0784050 (diff) | |
download | markdown-5ee12763465d123a313d43fc0fb497636f727d34.tar.gz markdown-5ee12763465d123a313d43fc0fb497636f727d34.tar.bz2 markdown-5ee12763465d123a313d43fc0fb497636f727d34.zip |
Fixed Ticket 70 and added a test. Footnote references whithout a coresponding definition no longer raise an error. They now pass through as plain text - which is the same behavior as PHP Markdown Extra. Thanks for the report Benjamin Bach.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/extensions/extra/footnote.html | 1 | ||||
-rw-r--r-- | tests/extensions/extra/footnote.txt | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/tests/extensions/extra/footnote.html b/tests/extensions/extra/footnote.html index 6556dab..d7d8b92 100644 --- a/tests/extensions/extra/footnote.html +++ b/tests/extensions/extra/footnote.html @@ -1,4 +1,5 @@ <p>This is the body with a footnote<sup id="fnref:1"><a href="#fn:1" rel="footnote">1</a></sup> or two<sup id="fnref:2"><a href="#fn:2" rel="footnote">2</a></sup> or more<sup id="fnref:3"><a href="#fn:3" rel="footnote">3</a></sup> <sup id="fnref:4"><a href="#fn:4" rel="footnote">4</a></sup>.</p> +<p>Also a reference that does not exist[^5].</p> <div class="footnote"> <hr /> <ol> diff --git a/tests/extensions/extra/footnote.txt b/tests/extensions/extra/footnote.txt index 07188d0..9f89397 100644 --- a/tests/extensions/extra/footnote.txt +++ b/tests/extensions/extra/footnote.txt @@ -1,5 +1,7 @@ This is the body with a footnote[^1] or two[^2] or more[^3] [^4]. +Also a reference that does not exist[^5]. + [^1]: Footnote that ends with a list: * item 1 |