aboutsummaryrefslogtreecommitdiffstats
path: root/markdown/tests/extensions-x-footnotes
diff options
context:
space:
mode:
Diffstat (limited to 'markdown/tests/extensions-x-footnotes')
-rw-r--r--markdown/tests/extensions-x-footnotes/footnote.html29
-rw-r--r--markdown/tests/extensions-x-footnotes/footnote.txt14
-rw-r--r--markdown/tests/extensions-x-footnotes/named_markers.html24
-rw-r--r--markdown/tests/extensions-x-footnotes/named_markers.txt9
-rw-r--r--markdown/tests/extensions-x-footnotes/test.cfg2
5 files changed, 78 insertions, 0 deletions
diff --git a/markdown/tests/extensions-x-footnotes/footnote.html b/markdown/tests/extensions-x-footnotes/footnote.html
new file mode 100644
index 0000000..6556dab
--- /dev/null
+++ b/markdown/tests/extensions-x-footnotes/footnote.html
@@ -0,0 +1,29 @@
+<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>
+<div class="footnote">
+<hr />
+<ol>
+<li id="fn:1">
+<p>Footnote that ends with a list:</p>
+<ul>
+<li>item 1</li>
+<li>item 2</li>
+</ul>
+<p><a href="#fnref:1" rev="footnote" title="Jump back to footnote 1 in the text">&#8617;</a></p>
+</li>
+<li id="fn:2">
+<blockquote>
+<p>This footnote is a blockquote.
+</p>
+</blockquote>
+<p><a href="#fnref:2" rev="footnote" title="Jump back to footnote 2 in the text">&#8617;</a></p>
+</li>
+<li id="fn:3">
+<p>A simple oneliner.
+&#160;<a href="#fnref:3" rev="footnote" title="Jump back to footnote 3 in the text">&#8617;</a></p>
+</li>
+<li id="fn:4">
+<p>A footnote with multiple paragraphs.</p>
+<p>Paragraph two.&#160;<a href="#fnref:4" 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/markdown/tests/extensions-x-footnotes/footnote.txt b/markdown/tests/extensions-x-footnotes/footnote.txt
new file mode 100644
index 0000000..07188d0
--- /dev/null
+++ b/markdown/tests/extensions-x-footnotes/footnote.txt
@@ -0,0 +1,14 @@
+This is the body with a footnote[^1] or two[^2] or more[^3] [^4].
+
+[^1]: Footnote that ends with a list:
+
+ * item 1
+ * item 2
+
+[^2]: > This footnote is a blockquote.
+
+[^3]: A simple oneliner.
+
+[^4]: A footnote with multiple paragraphs.
+
+ Paragraph two.
diff --git a/markdown/tests/extensions-x-footnotes/named_markers.html b/markdown/tests/extensions-x-footnotes/named_markers.html
new file mode 100644
index 0000000..6996b5f
--- /dev/null
+++ b/markdown/tests/extensions-x-footnotes/named_markers.html
@@ -0,0 +1,24 @@
+<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/markdown/tests/extensions-x-footnotes/named_markers.txt b/markdown/tests/extensions-x-footnotes/named_markers.txt
new file mode 100644
index 0000000..d246524
--- /dev/null
+++ b/markdown/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.
+
diff --git a/markdown/tests/extensions-x-footnotes/test.cfg b/markdown/tests/extensions-x-footnotes/test.cfg
new file mode 100644
index 0000000..a5f0818
--- /dev/null
+++ b/markdown/tests/extensions-x-footnotes/test.cfg
@@ -0,0 +1,2 @@
+[DEFAULT]
+extensions=footnotes