Skip to content

Commit a0de7d8

Browse files
committed
Added regression test that exercises nested footnotes.
1 parent 71e27f2 commit a0de7d8

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

test/regression.txt

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,3 +269,26 @@ Pull request #128 - Buffer overread in tables extension
269269
<p>|
270270
-|</p>
271271
````````````````````````````````
272+
273+
Footnotes may be nested inside other footnotes.
274+
275+
276+
```````````````````````````````` example footnotes
277+
This is some text. It has a citation.[^citation]
278+
279+
[^another-citation]: My second citation.
280+
281+
[^citation]: This is a long winded parapgraph that also has another citation.[^another-citation]
282+
.
283+
<p>This is some text. It has a citation.<sup class="footnote-ref"><a href="#fn1" id="fnref1">1</a></sup></p>
284+
<section class="footnotes">
285+
<ol>
286+
<li id="fn1">
287+
<p>This is a long winded parapgraph that also has another citation.<sup class="footnote-ref"><a href="#fn2" id="fnref2">2</a></sup> <a href="#fnref1" class="footnote-backref">↩</a></p>
288+
</li>
289+
<li id="fn2">
290+
<p>My second citation. <a href="#fnref2" class="footnote-backref">↩</a></p>
291+
</li>
292+
</ol>
293+
</section>
294+
````````````````````````````````

0 commit comments

Comments
 (0)