Skip to content

Commit 7fa2372

Browse files
committed
Added test that properly exercises footnotes whose reference labels contain 'w' or '_'.
1 parent bb117ff commit 7fa2372

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

test/regression.txt

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,3 +269,28 @@ Pull request #128 - Buffer overread in tables extension
269269
<p>|
270270
-|</p>
271271
````````````````````````````````
272+
273+
Footnotes may begin with or have a 'w' or a '_' in their reference label.
274+
275+
```````````````````````````````` example footnotes autolink
276+
This is some text. Sometimes the autolinker splits up text into multiple nodes, hoping it will find a hyperlink, so this text has a footnote whose reference label begins with a `w`.[^widely-cited]
277+
278+
It has another footnote that contains many different characters (the autolinker was also breaking on `_`).[^sphinx-of-black-quartz_judge-my-vow-0123456789]
279+
280+
[^sphinx-of-black-quartz_judge-my-vow-0123456789]: so does this.
281+
282+
[^widely-cited]: this renders properly.
283+
.
284+
<p>This is some text. Sometimes the autolinker splits up text into multiple nodes, hoping it will find a hyperlink, so this text has a footnote whose reference label begins with a <code>w</code>.<sup class="footnote-ref"><a href="#fn1" id="fnref1">1</a></sup></p>
285+
<p>It has another footnote that contains many different characters (the autolinker was also breaking on <code>_</code>).<sup class="footnote-ref"><a href="#fn2" id="fnref2">2</a></sup></p>
286+
<section class="footnotes">
287+
<ol>
288+
<li id="fn1">
289+
<p>this renders properly. <a href="#fnref1" class="footnote-backref">↩</a></p>
290+
</li>
291+
<li id="fn2">
292+
<p>so does this. <a href="#fnref2" class="footnote-backref">↩</a></p>
293+
</li>
294+
</ol>
295+
</section>
296+
````````````````````````````````

0 commit comments

Comments
 (0)