Skip to content

Commit bcdd7b2

Browse files
author
Waylan Limberg
committed
Some more tests for issue Python-Markdown#51. An upate to Marcin Kasperski's tests (which I previously merged). Thanks Marcin. Also added a test for not-indented secondary lines of a first paragraph in a footnote definition.
1 parent 869f385 commit bcdd7b2

File tree

3 files changed

+1212
-2402
lines changed

3 files changed

+1212
-2402
lines changed

tests/extensions/extra/footnote.html

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
<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>
2-
<p>Also a reference that does not exist[^5].</p>
1+
<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> <sup id="fnref:5"><a href="#fn:5" rel="footnote">5</a></sup>.</p>
2+
<p>Also a reference that does not exist[^6].</p>
33
<div class="footnote">
44
<hr />
55
<ol>
@@ -24,5 +24,10 @@
2424
<p>A footnote with multiple paragraphs.</p>
2525
<p>Paragraph two.&#160;<a href="#fnref:4" rev="footnote" title="Jump back to footnote 4 in the text">&#8617;</a></p>
2626
</li>
27+
<li id="fn:5">
28+
<p>First line of first paragraph.
29+
Second line of first paragraph is not intended.
30+
Nor is third...&#160;<a href="#fnref:5" rev="footnote" title="Jump back to footnote 5 in the text">&#8617;</a></p>
31+
</li>
2732
</ol>
2833
</div>

tests/extensions/extra/footnote.txt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
This is the body with a footnote[^1] or two[^2] or more[^3] [^4].
1+
This is the body with a footnote[^1] or two[^2] or more[^3] [^4] [^5].
22

3-
Also a reference that does not exist[^5].
3+
Also a reference that does not exist[^6].
44

55
[^1]: Footnote that ends with a list:
66

@@ -14,3 +14,7 @@ Also a reference that does not exist[^5].
1414
[^4]: A footnote with multiple paragraphs.
1515

1616
Paragraph two.
17+
18+
[^5]: First line of first paragraph.
19+
Second line of first paragraph is not intended.
20+
Nor is third...

0 commit comments

Comments
 (0)