mirror of
https://github.com/rust-lang/mdBook.git
synced 2025-12-27 12:43:52 -05:00
Add a test for multiple footnotes in a row
These were previously broken in older versions of pulldown-cmark.
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
<p>Testing when referring to something earlier.<sup class="footnote-reference" id="fr-define-before-use-1"><a href="#footnote-define-before-use">6</a></sup></p>
|
||||
<p>Footnote that is defined multiple times.<sup class="footnote-reference" id="fr-multiple-definitions-1"><a href="#footnote-multiple-definitions">7</a></sup></p>
|
||||
<p>And another<sup class="footnote-reference" id="fr-in-between-1"><a href="#footnote-in-between">8</a></sup> that references the duplicate again.<sup class="footnote-reference" id="fr-multiple-definitions-2"><a href="#footnote-multiple-definitions">7</a></sup></p>
|
||||
<p>Multiple footnotes in a row.<sup class="footnote-reference" id="fr-a-1"><a href="#footnote-a">9</a></sup><sup class="footnote-reference" id="fr-b-1"><a href="#footnote-b">10</a></sup><sup class="footnote-reference" id="fr-c-1"><a href="#footnote-c">11</a></sup></p>
|
||||
<hr>
|
||||
<ol class="footnote-definition"><li id="footnote-1">
|
||||
<p>This is a footnote. <a href="#fr-1-1">↩</a> <a href="#fr-1-2">↩2</a></p>
|
||||
@@ -43,4 +44,13 @@ With a reference inside.<sup class="footnote-reference" id="fr-1-2"><a href="#fo
|
||||
<li id="footnote-in-between">
|
||||
<p>Footnote between duplicates. <a href="#fr-in-between-1">↩</a></p>
|
||||
</li>
|
||||
<li id="footnote-a">
|
||||
<p>Footnote 1 <a href="#fr-a-1">↩</a></p>
|
||||
</li>
|
||||
<li id="footnote-b">
|
||||
<p>Footnote 2 <a href="#fr-b-1">↩</a></p>
|
||||
</li>
|
||||
<li id="footnote-c">
|
||||
<p>Footnote 3 <a href="#fr-c-1">↩</a></p>
|
||||
</li>
|
||||
</ol>
|
||||
@@ -45,3 +45,9 @@ And another[^in-between] that references the duplicate again.[^multiple-definiti
|
||||
[^in-between]: Footnote between duplicates.
|
||||
|
||||
[^multiple-definitions]: This is the second definition of the footnote with tag multiple-definitions
|
||||
|
||||
Multiple footnotes in a row.[^a][^b][^c]
|
||||
|
||||
[^a]: Footnote 1
|
||||
[^b]: Footnote 2
|
||||
[^c]: Footnote 3
|
||||
|
||||
Reference in New Issue
Block a user