Skip to content

Commit 7b5d45d

Browse files
committed
Adapted existing regression tests to conform to new footnote ref label.
1 parent 1aabfa3 commit 7b5d45d

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

test/regression.txt

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -279,14 +279,14 @@ This is some text. It has a citation.[^citation]
279279

280280
[^citation]: This is a long winded parapgraph that also has another citation.[^another-citation]
281281
.
282-
<p>This is some text. It has a citation.<sup class="footnote-ref"><a href="#fn1" id="fnref1">1</a></sup></p>
282+
<p>This is some text. It has a citation.<sup class="footnote-ref"><a href="#fn:citation" id="fnref:citation">1</a></sup></p>
283283
<section class="footnotes">
284284
<ol>
285-
<li id="fn1">
286-
<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>
285+
<li id="fn:citation">
286+
<p>This is a long winded parapgraph that also has another citation.<sup class="footnote-ref"><a href="#fn:another-citation" id="fnref:another-citation">2</a></sup> <a href="#fnref:citation" class="footnote-backref">↩</a></p>
287287
</li>
288-
<li id="fn2">
289-
<p>My second citation. <a href="#fnref2" class="footnote-backref">↩</a></p>
288+
<li id="fn:another-citation">
289+
<p>My second citation. <a href="#fnref:another-citation" class="footnote-backref">↩</a></p>
290290
</li>
291291
</ol>
292292
</section>
@@ -301,14 +301,14 @@ This is some text. It has two footnotes references, side-by-side without any spa
301301

302302
[^footnote2]: Goodbye.
303303
.
304-
<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>
304+
<p>This is some text. It has two footnotes references, side-by-side without any spaces,<sup class="footnote-ref"><a href="#fn:footnote1" id="fnref:footnote1">1</a></sup><sup class="footnote-ref"><a href="#fn:footnote2" id="fnref:footnote2">2</a></sup> which are definitely not link references.</p>
305305
<section class="footnotes">
306306
<ol>
307-
<li id="fn1">
308-
<p>Hello. <a href="#fnref1" class="footnote-backref">↩</a></p>
307+
<li id="fn:footnote1">
308+
<p>Hello. <a href="#fnref:footnote1" class="footnote-backref">↩</a></p>
309309
</li>
310-
<li id="fn2">
311-
<p>Goodbye. <a href="#fnref2" class="footnote-backref">↩</a></p>
310+
<li id="fn:footnote2">
311+
<p>Goodbye. <a href="#fnref:footnote2" class="footnote-backref">↩</a></p>
312312
</li>
313313
</ol>
314314
</section>
@@ -325,15 +325,15 @@ It has another footnote that contains many different characters (the autolinker
325325

326326
[^widely-cited]: this renders properly.
327327
.
328-
<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>
329-
<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>
328+
<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="#fn:widely-cited" id="fnref:widely-cited">1</a></sup></p>
329+
<p>It has another footnote that contains many different characters (the autolinker was also breaking on <code>_</code>).<sup class="footnote-ref"><a href="#fn:sphinx-of-black-quartz_judge-my-vow-0123456789" id="fnref:sphinx-of-black-quartz_judge-my-vow-0123456789">2</a></sup></p>
330330
<section class="footnotes">
331331
<ol>
332-
<li id="fn1">
333-
<p>this renders properly. <a href="#fnref1" class="footnote-backref">↩</a></p>
332+
<li id="fn:widely-cited">
333+
<p>this renders properly. <a href="#fnref:widely-cited" class="footnote-backref">↩</a></p>
334334
</li>
335-
<li id="fn2">
336-
<p>so does this. <a href="#fnref2" class="footnote-backref">↩</a></p>
335+
<li id="fn:sphinx-of-black-quartz_judge-my-vow-0123456789">
336+
<p>so does this. <a href="#fnref:sphinx-of-black-quartz_judge-my-vow-0123456789" class="footnote-backref">↩</a></p>
337337
</li>
338338
</ol>
339339
</section>

0 commit comments

Comments
 (0)