aboutsummaryrefslogtreecommitdiffstats
path: root/tests/extensions-x-footnotes
diff options
context:
space:
mode:
authorWaylan Limberg <waylan@gmail.com>2008-10-29 18:54:41 -0400
committerWaylan Limberg <waylan@gmail.com>2008-10-29 18:54:41 -0400
commit72bcb21a5cfd50cc21b3e569ca4ca0c74970c17d (patch)
treeb279311e08f56d720b4a9fe77a1844ee212ea7d3 /tests/extensions-x-footnotes
parent4be7c4adbd91b796dd13d9329b1806049afeacd9 (diff)
downloadmarkdown-72bcb21a5cfd50cc21b3e569ca4ca0c74970c17d.tar.gz
markdown-72bcb21a5cfd50cc21b3e569ca4ca0c74970c17d.tar.bz2
markdown-72bcb21a5cfd50cc21b3e569ca4ca0c74970c17d.zip
Add another test for th efootnote extension that tests named (rather than consecutively numbered) footnote markers.
Diffstat (limited to 'tests/extensions-x-footnotes')
-rw-r--r--tests/extensions-x-footnotes/named_markers.html20
-rw-r--r--tests/extensions-x-footnotes/named_markers.txt9
2 files changed, 29 insertions, 0 deletions
diff --git a/tests/extensions-x-footnotes/named_markers.html b/tests/extensions-x-footnotes/named_markers.html
new file mode 100644
index 0000000..f643b7b
--- /dev/null
+++ b/tests/extensions-x-footnotes/named_markers.html
@@ -0,0 +1,20 @@
+<p>This is the body with footnotes<sup id="fnref:foo"><a href="#fn:foo" rel="footnote">1</a></sup>
+that have named<sup id="fnref:bar"><a href="#fn:bar" rel="footnote">2</a></sup> markers and
+oddly<sup id="fnref:56"><a href="#fn:56" rel="footnote">3</a></sup> numbered<sup id="fnref:99"><a href="#fn:99" rel="footnote">4</a></sup> markers.</p>
+<div class="footnote">
+<hr />
+<ol>
+<li id="fn:foo">
+<p>Footnote marked <code>foo</code>.&#160;<a href="#fnref:foo" rev="footnote" title="Jump back to footnote 1 in the text">&#8617;</a></p>
+</li>
+<li id="fn:bar">
+<p>This one is marked <em>bar</em>.&#160;<a href="#fnref:bar" rev="footnote" title="Jump back to footnote 2 in the text">&#8617;</a></p>
+</li>
+<li id="fn:56">
+<p>A <strong>numbered</strong> footnote.&#160;<a href="#fnref:56" rev="footnote" title="Jump back to footnote 3 in the text">&#8617;</a></p>
+</li>
+<li id="fn:99">
+<p>The last one.&#160;<a href="#fnref:99" rev="footnote" title="Jump back to footnote 4 in the text">&#8617;</a></p>
+</li>
+</ol>
+</div> \ No newline at end of file
diff --git a/tests/extensions-x-footnotes/named_markers.txt b/tests/extensions-x-footnotes/named_markers.txt
new file mode 100644
index 0000000..d246524
--- /dev/null
+++ b/tests/extensions-x-footnotes/named_markers.txt
@@ -0,0 +1,9 @@
+This is the body with footnotes[^foo]
+that have named[^bar] markers and
+oddly[^56] numbered[^99] markers.
+
+[^foo]: Footnote marked ``foo``.
+[^bar]: This one is marked *bar*.
+[^56]: A __numbered__ footnote.
+[^99]: The last one.
+