Skip to content

Commit 740b987

Browse files
committed
Added test that exercises whether footnotes are confused for link references.
1 parent 1f026ef commit 740b987

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

test/regression.txt

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,3 +269,25 @@ Pull request #128 - Buffer overread in tables extension
269269
<p>|
270270
-|</p>
271271
````````````````````````````````
272+
273+
## Footnotes are similar to, but should not be confused with, link references
274+
275+
```````````````````````````````` example footnotes
276+
This is some text. It has two footnotes references, side-by-side without any spaces,[^footnote1][^footnote2] which are definitely not link references.
277+
278+
[^footnote1]: Hello.
279+
280+
[^footnote2]: Goodbye.
281+
.
282+
<p>This is some text. It has two footnotes references, side-by-side without any spaces,<sup class="footnote-ref"><a href="#fn1" id="fnref1">1</a></sup><sup class="footnote-ref"><a href="#fn2" id="fnref2">2</a></sup> which are definitely not link references.</p>
283+
<section class="footnotes">
284+
<ol>
285+
<li id="fn1">
286+
<p>Hello. <a href="#fnref1" class="footnote-backref">↩</a></p>
287+
</li>
288+
<li id="fn2">
289+
<p>Goodbye. <a href="#fnref2" class="footnote-backref">↩</a></p>
290+
</li>
291+
</ol>
292+
</section>
293+
````````````````````````````````

0 commit comments

Comments
 (0)